mbox series

[v3,0/2] drm/probe_helper, i915: Validate MST modes against PBN limits

Message ID 20200710193144.94751-1-lyude@redhat.com (mailing list archive)
Headers show
Series drm/probe_helper, i915: Validate MST modes against PBN limits | expand

Message

Lyude Paul July 10, 2020, 7:31 p.m. UTC
Something we've been missing for a while with drivers that support MST
is being able to prune modes that can't be set due to bandwidth
limitations. So, let's go ahead and add that. This also adds a new hook
that was needed, mode_valid_ctx, so that we can grab additional locks as
needed when validating modes.

Lee Shawn C (1):
  drm/i915/mst: filter out the display mode exceed sink's capability

Lyude Paul (1):
  drm/probe_helper: Add drm_connector_helper_funcs.mode_valid_ctx

 drivers/gpu/drm/drm_crtc_helper_internal.h  |  7 +-
 drivers/gpu/drm/drm_probe_helper.c          | 94 ++++++++++++++-------
 drivers/gpu/drm/i915/display/intel_dp_mst.c | 55 ++++++++----
 include/drm/drm_modeset_helper_vtables.h    | 42 +++++++++
 4 files changed, 147 insertions(+), 51 deletions(-)

Comments

Lyude Paul July 10, 2020, 7:59 p.m. UTC | #1
Huh.
Well, that's definitely not me :)

On Fri, 2020-07-10 at 19:58 +0000, Patchwork wrote:
> == Series Details ==
> 
> Series: drm/probe_helper, i915: Validate MST modes against PBN limits (rev3)
> URL   : https://patchwork.freedesktop.org/series/77670/
> State : warning
> 
> == Summary ==
> 
> $ dim sparse --fast origin/drm-tip
> Sparse version: v0.6.0
> Fast mode used, each commit won't be checked separately.
> -
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:1019:47:    expected unsigned
> int [addressable] [usertype] ulClockParams
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:1019:47:    got restricted
> __le32 [usertype]
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:1019:47: warning: incorrect type
> in assignment (different base types)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:1028:50: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:1029:49: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:1037:47: warning: too many
> warnings
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:184:44: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:283:14: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:320:14: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:323:14: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:326:14: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:329:18: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:330:26: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:338:30: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:340:38: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:342:30: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:346:30: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:348:30: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:353:33: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:367:43: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:369:38: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:374:67: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:375:53: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:378:66: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:389:80: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:395:57: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:402:69: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:403:53: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:406:66: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:414:66: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:423:69: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:424:69: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:473:30: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:476:45: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:477:45: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:484:54: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:52:28: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:531:35: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:53:29: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:533:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:54:26: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:55:27: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:56:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:57:26: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:577:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:581:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:58:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:583:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:586:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:590:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:59:26: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:598:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:600:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:617:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:621:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:623:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:630:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:632:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:644:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:648:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:650:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:657:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:659:21: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:662:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:664:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:676:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:688:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:691:47: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:697:25: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:796:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:797:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:800:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:801:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:804:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:805:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:812:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:813:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:816:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:817:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:820:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:821:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:828:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:829:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:832:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:833:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:836:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:837:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:844:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:845:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:848:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:849:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:852:46: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:853:40: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:916:47: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:918:49: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:920:52: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:934:47: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:936:49: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:938:52: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:956:47: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:958:49: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:960:52: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:319:34: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:356:34: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:386:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:388:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:395:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:409:40: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:432:40: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:44:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:473:53: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:477:33: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:480:61: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:481:64: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:483:54: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:509:17: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:512:21: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:64:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:80:17: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:80:17: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:80:17: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:85:30: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:86:24: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c:98:39: warning: cast to
> restricted __le16
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:222:29: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:226:37: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:226:37: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:226:37: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:227:37: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:233:43: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:236:44: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:239:51: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:458:41: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:458:41: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:458:41: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:464:39: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:465:30: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:466:39: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:468:24: warning: cast to restricted
> __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:140:26:    expected unsigned long long
> [usertype] *chunk_array_user
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:140:26:    got void [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:140:26: warning: incorrect type in
> assignment (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:141:41:    expected void const
> [noderef] __user *from
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:141:41:    got unsigned long long
> [usertype] *chunk_array_user
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:141:41: warning: incorrect type in
> argument 2 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:160:27:    expected struct
> drm_amdgpu_cs_chunk [noderef] __user **chunk_ptr
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:160:27:    got void [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:160:27: warning: incorrect type in
> assignment (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1613:21:    expected struct
> drm_amdgpu_fence *fences_user
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1613:21:    got void [noderef] __user
> *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1613:21: warning: incorrect type in
> assignment (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1614:36:    expected void const
> [noderef] __user *from
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1614:36:    got struct
> drm_amdgpu_fence *fences_user
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1614:36: warning: incorrect type in
> argument 2 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:161:49:    expected void const
> [noderef] __user *from
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:161:49:    got struct
> drm_amdgpu_cs_chunk [noderef] __user **chunk_ptr
> +drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:161:49: warning: incorrect type in
> argument 2 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1304:25: error: incompatible
> types in comparison expression (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1305:17: error: incompatible
> types in comparison expression (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1361:17: error: incompatible
> types in comparison expression (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:138:17:    expected restricted
> __poll_t ( *poll )( ... )
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:138:17:    got unsigned int ( *
> )( ... )
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:138:17: warning: incorrect type
> in initializer (different base types)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:261:29: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:263:29: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:354:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:412:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:473:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:531:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:592:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:650:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21:    expected void const
> volatile [noderef] __user *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21:    got unsigned int
> [usertype] *
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: cast removes
> address space '__user' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: incorrect type
> in argument 1 (different address spaces)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:747:21: warning: too many
> warnings
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1650:65: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1658:55: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1659:50: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1660:50: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1661:56: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1663:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1664:45: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1665:51: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1666:55: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1667:57: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1669:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1670:53: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1672:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1674:25: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1675:46: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1679:73: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1681:33: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1683:33: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1694:73: warning: cast to
> restricted __le32
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:262:16: error: incompatible types
> in comparison expression (different type sizes)
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:509:39: warning: cast removes
> address space '__iomem' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:529:31: warning: cast removes
> address space '__iomem' of expression
> +drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:184:13: warning: cast to
> restricted __le32
>