Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4299392ybz; Mon, 20 Apr 2020 20:35:17 -0700 (PDT) X-Google-Smtp-Source: APiQypLtQme8fNRffGNZxRBX2yHlnHn2tJ7ot2msUkTLjN1aLiv3Ckk4N2jPniGUqt6v+BkBTjI3 X-Received: by 2002:a17:906:35d0:: with SMTP id p16mr18673942ejb.77.1587440117021; Mon, 20 Apr 2020 20:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587440117; cv=none; d=google.com; s=arc-20160816; b=0mJ2QR/8QhsQm43Wt7efznzorYu7UCS4L0da+ohvDv1GNBC2Y8fvvUfa2gWFj3bCI1 CuzXhT5xv6lqzcSEbsSgJ4Arc4xBjtE/wGLEwVm3PRStHX65oUYWUc2blIyaEXwgeEYP kb4JKxWdLdsm0h7MEFDd85GpAHujQpmRoyqrZBjxOfnbg2zyNXXfeO6CNW/FNd5No6IT yrPeJM2GYsw+X36u7kLw2ZdLQZTJUBeCFwHfFZ9ZMOqFR0JZwIskIquDuACmObB6o/8O Z4h8SrWM+IRVNK5QBw/kruNJXcG7TlJyLgSU48siVEqzcUtxXpP7uSJxambKTBhT5J5b EAFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:cc:to:from :dkim-signature:dkim-filter; bh=HUZ2Oj4/FKTBOU/3hAHhyGWK1R7ISUziMoYCYLNnqYc=; b=gKFl7d6slO8hGgH/cHwAoaaIebc1DcxLM05GMu7dtOOuVz5dVTeKR0yRvcnn9w1V62 PJt0i0t8m/p7d5DttBs2GgwYNZJMMcvbc2w9q3OvyuNIWYpNgBuLIHWKr5HfLJk/Tl1T lJDZbyiAsyRAz9uljEDPfkW4TjMdqi4CBUcnUkTqujqpwjV3rLLdwoTJ0huu6r9mnUBV gVaWBk/wTcgvctEvxnoUPDvKHd8RLrfUyb+SW40z5I2MRGFjoonh+cPsExqRlw9DbfBC qbbAsMwDPU4x45a6fAbim4KiKjrJ7ekaLO9dRFw6f4GnNQYhMex3Abb1AwAGz/B7U+VS NdHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=a4vikwSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si885319edj.479.2020.04.20.20.34.52; Mon, 20 Apr 2020 20:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=a4vikwSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727948AbgDUDdu (ORCPT + 99 others); Mon, 20 Apr 2020 23:33:50 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:28972 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727083AbgDUDdt (ORCPT ); Mon, 20 Apr 2020 23:33:49 -0400 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200421033346epoutp01e1606e7115414ec58e4df8f0ba43fccd~HuEsmBVFa1138111381epoutp01d for ; Tue, 21 Apr 2020 03:33:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200421033346epoutp01e1606e7115414ec58e4df8f0ba43fccd~HuEsmBVFa1138111381epoutp01d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587440026; bh=HUZ2Oj4/FKTBOU/3hAHhyGWK1R7ISUziMoYCYLNnqYc=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=a4vikwSsuDr99ICUyufsBE3EwqO9qhzuxycJTvC/Dpff55eSCaDTtpTiGFMgeVFhS x6f46LL5rw4NWqq9rYinEjmmsAVc+lthQf57b4UU02H3kvX4b3wva8CM27jVml0GLR wPXF4btFD6dTYyYbWo9B1ZvC88afHYApC6qCYPRI= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20200421033346epcas2p4a6f59417ba1f64adf28040049ef0e8e4~HuEsYz1vj0973209732epcas2p4z; Tue, 21 Apr 2020 03:33:46 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.183]) by epsnrtp4.localdomain (Postfix) with ESMTP id 495q0m2FzGzMqYkj; Tue, 21 Apr 2020 03:33:44 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 5D.3F.04647.7996E9E5; Tue, 21 Apr 2020 12:33:43 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20200421033343epcas2p25716fce73b5f7ed78dac5102a07404e5~HuEpn1L6c2349823498epcas2p2B; Tue, 21 Apr 2020 03:33:43 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200421033343epsmtrp1880f62ad77d80fcd312df06ae1504211~HuEpnDXvQ0929409294epsmtrp1V; Tue, 21 Apr 2020 03:33:43 +0000 (GMT) X-AuditID: b6c32a48-8a5ff70000001227-98-5e9e6997bb42 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D0.C0.04024.7996E9E5; Tue, 21 Apr 2020 12:33:43 +0900 (KST) Received: from KORCO038849 (unknown [12.36.155.199]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200421033343epsmtip201991a790fff12ebe6d9936886b695b6~HuEpbNFA32087720877epsmtip2L; Tue, 21 Apr 2020 03:33:43 +0000 (GMT) From: "Sunyoung Kang" To: "'Arnd Bergmann'" Cc: "'Greg Kroah-Hartman'" , "'Mauro Carvalho Chehab'" , "'Hans Verkuil'" , "'Thomas Gleixner'" , "'Linux Media Mailing List'" , In-Reply-To: Subject: RE: [PATCH] media: v4l2-compat-ioctl32.c: copy reserved2 field in get_v4l2_buffer32 Date: Tue, 21 Apr 2020 12:33:42 +0900 Message-ID: <046f01d6178d$a7fbc150$f7f343f0$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJ7gu42VSZ3MiAb9Gs8yfburY36QgIZ9gAxAlM3OUoCfrlhmAFhRYnpAW7QxJwBlNz4gqbdjGUA Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJJsWRmVeSWpSXmKPExsWy7bCmhe70zHlxBhca1Cz+TjrGbtG8eD2b xcWZd1ksLu+aw2bRs2Erq8WyTX+YLDZvmsrswO7x+9ckRo9NqzrZPN6dO8fusX/uGnaPz5vk PE59/cwewBaVY5ORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6Dr lpkDdIuSQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYptSAlp8DQsECvODG3uDQvXS85P9fK 0MDAyBSoMiEnY8WnnUwFT/gqbt3YwNjA+JW7i5GTQ0LAROLZ9G1sXYxcHEICOxglWt8sZYRw PjFKXPz6gx3C+cYoseL8HhaYlkk7j0C17GWU+PbhGyuE85JRYunCJYwgVWwC+hLtrR/ZQW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YzALaEr0PWxkhbHmJ7W/nMEOcpyDx8+kyVogroiTOHl7JDlEj IjG7s415AqPwLCSjZiEZNQvJqFlIWhYwsqxilEwtKM5Nzy02LDDMSy3XK07MLS7NS9dLzs/d xAiOLS3NHYyXl8QfYhTgYFTi4d0gNi9OiDWxrLgy9xCjBAezkgivhRZQiDclsbIqtSg/vqg0 J7X4EKM0B4uSOO/TvGORQgLpiSWp2ampBalFMFkmDk6pBkb25Z9+ylRlPovlWBoQw7ZU2J5N dYZWq4akzAkxhb0K+W2qn1Mq+U4vY/1UZllxruzMpdnmcZZz107Iy12fzXZsJd8jvn2HgtRf +FTbuSV7GF+cNUdv3zXpr22py4MUPWdendS6YE+SWP2Sv+mb8+bJqrnOer77nr5EprDznL2+ Ll78l4WuWSuxFGckGmoxFxUnAgDuPHm/qQIAAA== X-CMS-MailID: 20200421033343epcas2p25716fce73b5f7ed78dac5102a07404e5 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200417025205epcas2p46d33e64f2de49041d2ca68ecc98fc83e References: <20200417024543.66785-1-sy0816.kang@samsung.com> <20200417083506.GB141762@kroah.com> <145301d6152f$6d5b6240$481226c0$@samsung.com> <20200418073719.GA2410414@kroah.com> <000001d616ac$4ceaf1a0$e6c0d4e0$@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you for your detailed guide. And I'll look into how to handle the additional information. Thanks Sunyoung > -----Original Message----- > From: Arnd Bergmann > Sent: Monday, April 20, 2020 8:23 PM > To: Sunyoung Kang > Cc: Greg Kroah-Hartman ; Mauro Carvalho Chehab > ; Hans Verkuil ; Thomas > Gleixner ; Linux Media Mailing List media@vger.kernel.org>; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] media: v4l2-compat-ioctl32.c: copy reserved2 field in > get_v4l2_buffer32 > > On Mon, Apr 20, 2020 at 2:40 AM Sunyoung Kang > wrote: > > > > I understand what you mean. > > However, the way to transmit information about the buffer is only > > flags in v4l2_buffer In flags in v4l2_buffer, there is no reserved bit > > field that can be used for custom. > > Additional information about the buffer is needed to provide various > > functions required by the customers but flags is not enough. So > > reserved2 is used as an alternative. > > Can you suggest a better opinion? > > If you have a driver that needs to pass additional information that is not > supported by the subsystem, this is generally either because there is > something wrong in the driver, or because there is something wrong in the > subsystem. > > Whichever is at fault should be fixed. If it's the subsystem, then you > should explain why it's wrong and make a suggestion for how to address it, > e.g. > introducing a new ioctl command or redefining the reserved members to be > defined in the way you need. > > In any case, the ioctl commands should be driver independent, so that any > hardware with the same feature as your driver can work with the same user > space. > > Arnd