Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1761678rdb; Sat, 20 Jan 2024 12:21:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IERvkx/Jdxmiour9fzbMGtKdBRcc6hFel3k8lpDrMp8W6vZuhNvC+9s/IASA9y4l2BeCIIv X-Received: by 2002:a05:6a21:3a45:b0:199:bf04:5cc5 with SMTP id zu5-20020a056a213a4500b00199bf045cc5mr3562236pzb.15.1705782074232; Sat, 20 Jan 2024 12:21:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705782074; cv=pass; d=google.com; s=arc-20160816; b=qk5kxBPz+atyThr83nWsh1frMgGai4Lu7zGuWn5e7WIA5Cvza9aQtwVqkSkRKouLqe Ha5fCSOEaWqbecZDnQ8JZbNa82lTPlXwFmInBsPRqZeIuAR0KZvY1IUTN0e4EpC4yyMp d0nFgCF1UdWo++JLqAzcESwkYnyqShxABXRz9v8xXb0Vrmk2EMNOPOk4TYnt2TaWEkLA IzkyLDv4bu7Qo1uAJD79Uvvq00A+miiig3CUERimzbftBPbjrloxbNivznEHN1e80JEe onPlHnnrNGcvw4hnGwYnvzhusgCqZDvm6bXT3xt3QckLgtOvURt712DiXbdo1/Jw++HD R8Og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=A7TsAbeQRZR1MzT9pCLRnGjw8DEjrRBkW/GPdfcSwII=; fh=gNpcyBElW1qSP5x0yf74KRkYqRB2YLwaHUDpFFC9onA=; b=ixK9fDzIYLCw5D98NNBblHrOwL8eEP3JqjRjPPI1D8PgVphekUTV/CfDsilMxYTfFU 8MMtxYzROlv+wG9yH2YZAn/pSvmoRS2MmnRPLJtfY6djgIrT1oOyDxa0UnfPCI5bPYsb TspnXT9kGVmA458VItKcq2yiuuaGb9gcyehhreervCf9qAxNwRo+frCRDYjaB5/L0zib fYQJoAfODxCEcZteXsupvoLpSOMaJgBzJDqJVLsCJfrM1hqxJICRtr21sQiRNo4fQ8u9 H3UHxAr3ZMKBdPv+7QUhQHYtdjhOP2wRA4tIbhftUSwbeCDsIWFr1ugs2E6dPY9Wtfwm R8nA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eJEmstC8; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z10-20020a63e10a000000b005cf5889c470si5519250pgh.322.2024.01.20.12.21.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 12:21:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eJEmstC8; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E128F282783 for ; Sat, 20 Jan 2024 20:21:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1DAB12E7E; Sat, 20 Jan 2024 20:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eJEmstC8" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBDE2125CB; Sat, 20 Jan 2024 20:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705782059; cv=none; b=Oe+GCzSXeMcEajl6AGw2/YIFZdG8HiqTpEB824Pbydzd+GJdCPnb+DzL2SjfIiaGEHBKbAt96vI9DZygEw4HBOHlppgoubJHqZMc7k8wAIoq1AWn6DHbC4K8FoQEPrcOSlXFs+D34dLf9FC2Jg7uZ1MlPvo145YMFKE/eezfur8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705782059; c=relaxed/simple; bh=U78daOtSkrFdUaUQZUr/tYdCEiTmvCOAjx1R2N9s7GE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EsvuTGC8sZCu+XQcZ3wrcD189dWhE6Ey8JOopPlP/oymBy/r4Fz/AwSk0EABjRElpJq8IaJ94C88OZjtesb7laeJdEZZMM3vHRV4aO7FBqdowDZeWU8goNbsrb/0SjBhV63NKr+WP6L10Vw2+H3pWztbx8cE31W3m1AoT3vdp6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eJEmstC8; arc=none smtp.client-ip=192.55.52.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705782058; x=1737318058; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=U78daOtSkrFdUaUQZUr/tYdCEiTmvCOAjx1R2N9s7GE=; b=eJEmstC8MlnS0zC2fq/9QyJI1/ySJPZGQOyiFaYiStuuqtfWGB7f9sgi KuE13LMYr7l4dlxZDE0acrHd2L5jUL4oYyH4BDoED2pSrUOOYkUN+yVh1 sJ029VooUpGsddhBku0EjsBEFxnUWgFyd9gz9LNMBusFNMLpVeDONKapV sZRI+l2o8Wlx/ApKdjXED01Jj8wzTMJ7ihprGQrbjtc7j2I0MoSSEWc4F MX08uRN5X1BgPDpIyTnx7OschAHzMwInonGOxXjulfeX0f9S6C34jrs0F NtApy50SNzVToGAwKXnHqHqyFMgVJ5rCVGSPMUpKXNstrpybwL0hacLvN g==; X-IronPort-AV: E=McAfee;i="6600,9927,10959"; a="487111252" X-IronPort-AV: E=Sophos;i="6.05,208,1701158400"; d="scan'208";a="487111252" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2024 12:20:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,208,1701158400"; d="scan'208";a="941461" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 20 Jan 2024 12:20:53 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rRHpi-0005Pv-0Y; Sat, 20 Jan 2024 20:20:50 +0000 Date: Sun, 21 Jan 2024 04:20:40 +0800 From: kernel test robot To: Paul Cercueil , Greg Kroah-Hartman , Jonathan Corbet , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Paul Cercueil , Michael Hennerich , linux-doc@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Nuno =?iso-8859-1?Q?S=E1?= , Jonathan Cameron , linux-media@vger.kernel.org Subject: Re: [PATCH v5 1/6] dma-buf: Add dma_buf_{begin,end}_access() Message-ID: <202401210406.YYgVcAC1-lkp@intel.com> References: <20240119141402.44262-2-paul@crapouillou.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240119141402.44262-2-paul@crapouillou.net> Hi Paul, kernel test robot noticed the following build warnings: [auto build test WARNING on usb/usb-testing] [also build test WARNING on usb/usb-next usb/usb-linus drm-misc/drm-misc-next lwn/docs-next linus/master v6.7 next-20240119] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Paul-Cercueil/dma-buf-Add-dma_buf_-begin-end-_access/20240119-221604 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing patch link: https://lore.kernel.org/r/20240119141402.44262-2-paul%40crapouillou.net patch subject: [PATCH v5 1/6] dma-buf: Add dma_buf_{begin,end}_access() config: arm-randconfig-001-20240120 (https://download.01.org/0day-ci/archive/20240121/202401210406.YYgVcAC1-lkp@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project d92ce344bf641e6bb025b41b3f1a77dd25e2b3e9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240121/202401210406.YYgVcAC1-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202401210406.YYgVcAC1-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/dma-buf/dma-buf.c:1608: warning: Cannot understand * @dma_buf_begin_access - Call before any hardware access from/to the DMABUF on line 1608 - I thought it was a doc line >> drivers/dma-buf/dma-buf.c:1640: warning: Cannot understand * @dma_buf_end_access - Call after any hardware access from/to the DMABUF on line 1640 - I thought it was a doc line vim +1608 drivers/dma-buf/dma-buf.c 1606 1607 /** > 1608 * @dma_buf_begin_access - Call before any hardware access from/to the DMABUF 1609 * @attach: [in] attachment used for hardware access 1610 * @sg_table: [in] scatterlist used for the DMA transfer 1611 * @direction: [in] direction of DMA transfer 1612 */ 1613 int dma_buf_begin_access(struct dma_buf_attachment *attach, 1614 struct sg_table *sgt, enum dma_data_direction dir) 1615 { 1616 struct dma_buf *dmabuf; 1617 bool cookie; 1618 int ret; 1619 1620 if (WARN_ON(!attach)) 1621 return -EINVAL; 1622 1623 dmabuf = attach->dmabuf; 1624 1625 if (!dmabuf->ops->begin_access) 1626 return 0; 1627 1628 cookie = dma_fence_begin_signalling(); 1629 ret = dmabuf->ops->begin_access(attach, sgt, dir); 1630 dma_fence_end_signalling(cookie); 1631 1632 if (WARN_ON_ONCE(ret)) 1633 return ret; 1634 1635 return 0; 1636 } 1637 EXPORT_SYMBOL_NS_GPL(dma_buf_begin_access, DMA_BUF); 1638 1639 /** > 1640 * @dma_buf_end_access - Call after any hardware access from/to the DMABUF 1641 * @attach: [in] attachment used for hardware access 1642 * @sg_table: [in] scatterlist used for the DMA transfer 1643 * @direction: [in] direction of DMA transfer 1644 */ 1645 int dma_buf_end_access(struct dma_buf_attachment *attach, 1646 struct sg_table *sgt, enum dma_data_direction dir) 1647 { 1648 struct dma_buf *dmabuf; 1649 bool cookie; 1650 int ret; 1651 1652 if (WARN_ON(!attach)) 1653 return -EINVAL; 1654 1655 dmabuf = attach->dmabuf; 1656 1657 if (!dmabuf->ops->end_access) 1658 return 0; 1659 1660 cookie = dma_fence_begin_signalling(); 1661 ret = dmabuf->ops->end_access(attach, sgt, dir); 1662 dma_fence_end_signalling(cookie); 1663 1664 if (WARN_ON_ONCE(ret)) 1665 return ret; 1666 1667 return 0; 1668 } 1669 EXPORT_SYMBOL_NS_GPL(dma_buf_end_access, DMA_BUF); 1670 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki