Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • gpu
  • drm
  • drm_framebuffer.c
Find file BlameHistoryPermalink
  • Chris Wilson's avatar
    drm: Reject unknown legacy bpp and depth for drm_mode_addfb ioctl · 70109354
    Chris Wilson authored Sep 05, 2018
    
    
    Since this is handling user provided bpp and depth, we need to sanity
    check and propagate the EINVAL back rather than assume what the insane
    client intended and fill the logs with DRM_ERROR.
    
    v2: Check both bpp and depth match the builtin pixel format, and
    introduce a canonical DRM_FORMAT_INVALID to reserve 0 against any future
    fourcc.
    
    v3: Mark up DRM_FORMAT_C8 as being {bpp:8, depth:8}
    
    Testcase: igt/kms_addfb_basic/legacy-format
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Link: https://patchwork.freedesktop.org/patch/msgid/20180905153116.28924-1-chris@chris-wilson.co.uk
    70109354
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7