[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202502152133.QgtAml6d-lkp@intel.com>
Date: Sat, 15 Feb 2025 21:17:03 +0800
From: kernel test robot <lkp@...el.com>
To: Adrián Larumbe <adrian.larumbe@...labora.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Boris Brezillon <bbrezillon@...nel.org>,
Steven Price <steven.price@....com>
Subject: drivers/gpu/drm/panthor/panthor_sched.c:687: warning: Excess struct
member 'data' description in 'panthor_group'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7ff71e6d923969d933e1ba7e0db857782d36cd19
commit: e16635d88fa07ba5801aa9e57ad7fe3c053234e4 drm/panthor: add DRM fdinfo support
date: 5 months ago
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20250215/202502152133.QgtAml6d-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250215/202502152133.QgtAml6d-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502152133.QgtAml6d-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/panthor/panthor_sched.c:320: warning: Excess struct member 'runnable' description in 'panthor_scheduler'
drivers/gpu/drm/panthor/panthor_sched.c:320: warning: Excess struct member 'idle' description in 'panthor_scheduler'
drivers/gpu/drm/panthor/panthor_sched.c:320: warning: Excess struct member 'waiting' description in 'panthor_scheduler'
drivers/gpu/drm/panthor/panthor_sched.c:320: warning: Excess struct member 'has_ref' description in 'panthor_scheduler'
drivers/gpu/drm/panthor/panthor_sched.c:320: warning: Excess struct member 'in_progress' description in 'panthor_scheduler'
drivers/gpu/drm/panthor/panthor_sched.c:320: warning: Excess struct member 'stopped_groups' description in 'panthor_scheduler'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'mem' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'input' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'output' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'input_fw_va' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'output_fw_va' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'gpu_va' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'ref' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'gt' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'sync64' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'bo' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'offset' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'kmap' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'lock' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'id' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'seqno' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'last_fence' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'in_flight_jobs' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'slots' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'slot_count' description in 'panthor_queue'
drivers/gpu/drm/panthor/panthor_sched.c:492: warning: Excess struct member 'seqno' description in 'panthor_queue'
>> drivers/gpu/drm/panthor/panthor_sched.c:687: warning: Excess struct member 'data' description in 'panthor_group'
>> drivers/gpu/drm/panthor/panthor_sched.c:687: warning: Excess struct member 'lock' description in 'panthor_group'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'start' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'size' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'latest_flush' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'start' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'end' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'mask' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:823: warning: Excess struct member 'slot' description in 'panthor_job'
drivers/gpu/drm/panthor/panthor_sched.c:1746: warning: Function parameter or struct member 'ptdev' not described in 'panthor_sched_report_fw_events'
drivers/gpu/drm/panthor/panthor_sched.c:1746: warning: Function parameter or struct member 'events' not described in 'panthor_sched_report_fw_events'
drivers/gpu/drm/panthor/panthor_sched.c:2638: warning: Function parameter or struct member 'ptdev' not described in 'panthor_sched_report_mmu_fault'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GET_FREE_REGION
Depends on [n]: SPARSEMEM [=n]
Selected by [m]:
- RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m]
vim +687 drivers/gpu/drm/panthor/panthor_sched.c
de85488138247d Boris Brezillon 2024-02-29 529
de85488138247d Boris Brezillon 2024-02-29 530 /**
de85488138247d Boris Brezillon 2024-02-29 531 * struct panthor_group - Scheduling group object
de85488138247d Boris Brezillon 2024-02-29 532 */
de85488138247d Boris Brezillon 2024-02-29 533 struct panthor_group {
de85488138247d Boris Brezillon 2024-02-29 534 /** @refcount: Reference count */
de85488138247d Boris Brezillon 2024-02-29 535 struct kref refcount;
de85488138247d Boris Brezillon 2024-02-29 536
de85488138247d Boris Brezillon 2024-02-29 537 /** @ptdev: Device. */
de85488138247d Boris Brezillon 2024-02-29 538 struct panthor_device *ptdev;
de85488138247d Boris Brezillon 2024-02-29 539
de85488138247d Boris Brezillon 2024-02-29 540 /** @vm: VM bound to the group. */
de85488138247d Boris Brezillon 2024-02-29 541 struct panthor_vm *vm;
de85488138247d Boris Brezillon 2024-02-29 542
de85488138247d Boris Brezillon 2024-02-29 543 /** @compute_core_mask: Mask of shader cores that can be used for compute jobs. */
de85488138247d Boris Brezillon 2024-02-29 544 u64 compute_core_mask;
de85488138247d Boris Brezillon 2024-02-29 545
de85488138247d Boris Brezillon 2024-02-29 546 /** @fragment_core_mask: Mask of shader cores that can be used for fragment jobs. */
de85488138247d Boris Brezillon 2024-02-29 547 u64 fragment_core_mask;
de85488138247d Boris Brezillon 2024-02-29 548
de85488138247d Boris Brezillon 2024-02-29 549 /** @tiler_core_mask: Mask of tiler cores that can be used for tiler jobs. */
de85488138247d Boris Brezillon 2024-02-29 550 u64 tiler_core_mask;
de85488138247d Boris Brezillon 2024-02-29 551
de85488138247d Boris Brezillon 2024-02-29 552 /** @max_compute_cores: Maximum number of shader cores used for compute jobs. */
de85488138247d Boris Brezillon 2024-02-29 553 u8 max_compute_cores;
de85488138247d Boris Brezillon 2024-02-29 554
be7ffc821f5fc2 Liviu Dudau 2024-04-02 555 /** @max_fragment_cores: Maximum number of shader cores used for fragment jobs. */
de85488138247d Boris Brezillon 2024-02-29 556 u8 max_fragment_cores;
de85488138247d Boris Brezillon 2024-02-29 557
de85488138247d Boris Brezillon 2024-02-29 558 /** @max_tiler_cores: Maximum number of tiler cores used for tiler jobs. */
de85488138247d Boris Brezillon 2024-02-29 559 u8 max_tiler_cores;
de85488138247d Boris Brezillon 2024-02-29 560
de85488138247d Boris Brezillon 2024-02-29 561 /** @priority: Group priority (check panthor_csg_priority). */
de85488138247d Boris Brezillon 2024-02-29 562 u8 priority;
de85488138247d Boris Brezillon 2024-02-29 563
de85488138247d Boris Brezillon 2024-02-29 564 /** @blocked_queues: Bitmask reflecting the blocked queues. */
de85488138247d Boris Brezillon 2024-02-29 565 u32 blocked_queues;
de85488138247d Boris Brezillon 2024-02-29 566
de85488138247d Boris Brezillon 2024-02-29 567 /** @idle_queues: Bitmask reflecting the idle queues. */
de85488138247d Boris Brezillon 2024-02-29 568 u32 idle_queues;
de85488138247d Boris Brezillon 2024-02-29 569
de85488138247d Boris Brezillon 2024-02-29 570 /** @fatal_lock: Lock used to protect access to fatal fields. */
de85488138247d Boris Brezillon 2024-02-29 571 spinlock_t fatal_lock;
de85488138247d Boris Brezillon 2024-02-29 572
de85488138247d Boris Brezillon 2024-02-29 573 /** @fatal_queues: Bitmask reflecting the queues that hit a fatal exception. */
de85488138247d Boris Brezillon 2024-02-29 574 u32 fatal_queues;
de85488138247d Boris Brezillon 2024-02-29 575
de85488138247d Boris Brezillon 2024-02-29 576 /** @tiler_oom: Mask of queues that have a tiler OOM event to process. */
de85488138247d Boris Brezillon 2024-02-29 577 atomic_t tiler_oom;
de85488138247d Boris Brezillon 2024-02-29 578
de85488138247d Boris Brezillon 2024-02-29 579 /** @queue_count: Number of queues in this group. */
de85488138247d Boris Brezillon 2024-02-29 580 u32 queue_count;
de85488138247d Boris Brezillon 2024-02-29 581
de85488138247d Boris Brezillon 2024-02-29 582 /** @queues: Queues owned by this group. */
de85488138247d Boris Brezillon 2024-02-29 583 struct panthor_queue *queues[MAX_CS_PER_CSG];
de85488138247d Boris Brezillon 2024-02-29 584
de85488138247d Boris Brezillon 2024-02-29 585 /**
de85488138247d Boris Brezillon 2024-02-29 586 * @csg_id: ID of the FW group slot.
de85488138247d Boris Brezillon 2024-02-29 587 *
de85488138247d Boris Brezillon 2024-02-29 588 * -1 when the group is not scheduled/active.
de85488138247d Boris Brezillon 2024-02-29 589 */
de85488138247d Boris Brezillon 2024-02-29 590 int csg_id;
de85488138247d Boris Brezillon 2024-02-29 591
de85488138247d Boris Brezillon 2024-02-29 592 /**
de85488138247d Boris Brezillon 2024-02-29 593 * @destroyed: True when the group has been destroyed.
de85488138247d Boris Brezillon 2024-02-29 594 *
de85488138247d Boris Brezillon 2024-02-29 595 * If a group is destroyed it becomes useless: no further jobs can be submitted
de85488138247d Boris Brezillon 2024-02-29 596 * to its queues. We simply wait for all references to be dropped so we can
de85488138247d Boris Brezillon 2024-02-29 597 * release the group object.
de85488138247d Boris Brezillon 2024-02-29 598 */
de85488138247d Boris Brezillon 2024-02-29 599 bool destroyed;
de85488138247d Boris Brezillon 2024-02-29 600
de85488138247d Boris Brezillon 2024-02-29 601 /**
de85488138247d Boris Brezillon 2024-02-29 602 * @timedout: True when a timeout occurred on any of the queues owned by
de85488138247d Boris Brezillon 2024-02-29 603 * this group.
de85488138247d Boris Brezillon 2024-02-29 604 *
de85488138247d Boris Brezillon 2024-02-29 605 * Timeouts can be reported by drm_sched or by the FW. In any case, any
de85488138247d Boris Brezillon 2024-02-29 606 * timeout situation is unrecoverable, and the group becomes useless.
de85488138247d Boris Brezillon 2024-02-29 607 * We simply wait for all references to be dropped so we can release the
de85488138247d Boris Brezillon 2024-02-29 608 * group object.
de85488138247d Boris Brezillon 2024-02-29 609 */
de85488138247d Boris Brezillon 2024-02-29 610 bool timedout;
de85488138247d Boris Brezillon 2024-02-29 611
de85488138247d Boris Brezillon 2024-02-29 612 /**
de85488138247d Boris Brezillon 2024-02-29 613 * @syncobjs: Pool of per-queue synchronization objects.
de85488138247d Boris Brezillon 2024-02-29 614 *
de85488138247d Boris Brezillon 2024-02-29 615 * One sync object per queue. The position of the sync object is
de85488138247d Boris Brezillon 2024-02-29 616 * determined by the queue index.
de85488138247d Boris Brezillon 2024-02-29 617 */
de85488138247d Boris Brezillon 2024-02-29 618 struct panthor_kernel_bo *syncobjs;
de85488138247d Boris Brezillon 2024-02-29 619
e16635d88fa07b Adrián Larumbe 2024-09-24 620 /** @fdinfo: Per-file total cycle and timestamp values reference. */
e16635d88fa07b Adrián Larumbe 2024-09-24 621 struct {
e16635d88fa07b Adrián Larumbe 2024-09-24 622 /** @data: Total sampled values for jobs in queues from this group. */
e16635d88fa07b Adrián Larumbe 2024-09-24 623 struct panthor_gpu_usage data;
e16635d88fa07b Adrián Larumbe 2024-09-24 624
e16635d88fa07b Adrián Larumbe 2024-09-24 625 /**
e16635d88fa07b Adrián Larumbe 2024-09-24 626 * @lock: Mutex to govern concurrent access from drm file's fdinfo callback
e16635d88fa07b Adrián Larumbe 2024-09-24 627 * and job post-completion processing function
e16635d88fa07b Adrián Larumbe 2024-09-24 628 */
e16635d88fa07b Adrián Larumbe 2024-09-24 629 struct mutex lock;
e16635d88fa07b Adrián Larumbe 2024-09-24 630 } fdinfo;
e16635d88fa07b Adrián Larumbe 2024-09-24 631
de85488138247d Boris Brezillon 2024-02-29 632 /** @state: Group state. */
de85488138247d Boris Brezillon 2024-02-29 633 enum panthor_group_state state;
de85488138247d Boris Brezillon 2024-02-29 634
de85488138247d Boris Brezillon 2024-02-29 635 /**
de85488138247d Boris Brezillon 2024-02-29 636 * @suspend_buf: Suspend buffer.
de85488138247d Boris Brezillon 2024-02-29 637 *
de85488138247d Boris Brezillon 2024-02-29 638 * Stores the state of the group and its queues when a group is suspended.
de85488138247d Boris Brezillon 2024-02-29 639 * Used at resume time to restore the group in its previous state.
de85488138247d Boris Brezillon 2024-02-29 640 *
de85488138247d Boris Brezillon 2024-02-29 641 * The size of the suspend buffer is exposed through the FW interface.
de85488138247d Boris Brezillon 2024-02-29 642 */
de85488138247d Boris Brezillon 2024-02-29 643 struct panthor_kernel_bo *suspend_buf;
de85488138247d Boris Brezillon 2024-02-29 644
de85488138247d Boris Brezillon 2024-02-29 645 /**
de85488138247d Boris Brezillon 2024-02-29 646 * @protm_suspend_buf: Protection mode suspend buffer.
de85488138247d Boris Brezillon 2024-02-29 647 *
de85488138247d Boris Brezillon 2024-02-29 648 * Stores the state of the group and its queues when a group that's in
de85488138247d Boris Brezillon 2024-02-29 649 * protection mode is suspended.
de85488138247d Boris Brezillon 2024-02-29 650 *
de85488138247d Boris Brezillon 2024-02-29 651 * Used at resume time to restore the group in its previous state.
de85488138247d Boris Brezillon 2024-02-29 652 *
de85488138247d Boris Brezillon 2024-02-29 653 * The size of the protection mode suspend buffer is exposed through the
de85488138247d Boris Brezillon 2024-02-29 654 * FW interface.
de85488138247d Boris Brezillon 2024-02-29 655 */
de85488138247d Boris Brezillon 2024-02-29 656 struct panthor_kernel_bo *protm_suspend_buf;
de85488138247d Boris Brezillon 2024-02-29 657
de85488138247d Boris Brezillon 2024-02-29 658 /** @sync_upd_work: Work used to check/signal job fences. */
de85488138247d Boris Brezillon 2024-02-29 659 struct work_struct sync_upd_work;
de85488138247d Boris Brezillon 2024-02-29 660
de85488138247d Boris Brezillon 2024-02-29 661 /** @tiler_oom_work: Work used to process tiler OOM events happening on this group. */
de85488138247d Boris Brezillon 2024-02-29 662 struct work_struct tiler_oom_work;
de85488138247d Boris Brezillon 2024-02-29 663
de85488138247d Boris Brezillon 2024-02-29 664 /** @term_work: Work used to finish the group termination procedure. */
de85488138247d Boris Brezillon 2024-02-29 665 struct work_struct term_work;
de85488138247d Boris Brezillon 2024-02-29 666
de85488138247d Boris Brezillon 2024-02-29 667 /**
de85488138247d Boris Brezillon 2024-02-29 668 * @release_work: Work used to release group resources.
de85488138247d Boris Brezillon 2024-02-29 669 *
de85488138247d Boris Brezillon 2024-02-29 670 * We need to postpone the group release to avoid a deadlock when
de85488138247d Boris Brezillon 2024-02-29 671 * the last ref is released in the tick work.
de85488138247d Boris Brezillon 2024-02-29 672 */
de85488138247d Boris Brezillon 2024-02-29 673 struct work_struct release_work;
de85488138247d Boris Brezillon 2024-02-29 674
de85488138247d Boris Brezillon 2024-02-29 675 /**
de85488138247d Boris Brezillon 2024-02-29 676 * @run_node: Node used to insert the group in the
de85488138247d Boris Brezillon 2024-02-29 677 * panthor_group::groups::{runnable,idle} and
de85488138247d Boris Brezillon 2024-02-29 678 * panthor_group::reset.stopped_groups lists.
de85488138247d Boris Brezillon 2024-02-29 679 */
de85488138247d Boris Brezillon 2024-02-29 680 struct list_head run_node;
de85488138247d Boris Brezillon 2024-02-29 681
de85488138247d Boris Brezillon 2024-02-29 682 /**
de85488138247d Boris Brezillon 2024-02-29 683 * @wait_node: Node used to insert the group in the
de85488138247d Boris Brezillon 2024-02-29 684 * panthor_group::groups::waiting list.
de85488138247d Boris Brezillon 2024-02-29 685 */
de85488138247d Boris Brezillon 2024-02-29 686 struct list_head wait_node;
de85488138247d Boris Brezillon 2024-02-29 @687 };
de85488138247d Boris Brezillon 2024-02-29 688
:::::: The code at line 687 was first introduced by commit
:::::: de85488138247d034eb3241840424a54d660926b drm/panthor: Add the scheduler logical block
:::::: TO: Boris Brezillon <boris.brezillon@...labora.com>
:::::: CC: Boris Brezillon <boris.brezillon@...labora.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists