Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbbKIUbQ (ORCPT ); Mon, 9 Nov 2015 15:31:16 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:64629 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbbKIUa6 (ORCPT ); Mon, 9 Nov 2015 15:30:58 -0500 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Laurent Pinchart , linux-samsung-soc@vger.kernel.org, Mauro Carvalho Chehab , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , linux-media@vger.kernel.org Subject: Re: [Y2038] [PATCH v2 9/9] [media] omap3isp: support 64-bit version of omap3isp_stat_data Date: Mon, 09 Nov 2015 21:30:41 +0100 Message-ID: <3870339.ZAkvtJ2orM@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5733951.qvCn4pc5g5@avalon> References: <1442524780-781677-1-git-send-email-arnd@arndb.de> <1442524780-781677-10-git-send-email-arnd@arndb.de> <5733951.qvCn4pc5g5@avalon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:heFemI8P+pIiJ9yrtymPa//1iPXyss3RQPqjzK1rFvt8t+2bLDR B1s1vxNMf+eDA+LENkPJjJPB2dsfe+pASywePe3CXPaO4voHjE4W/kznnOPs9NHSSvz83ee BhKmhI+UDl/rudEM9HdUxs5wiMZL73qQtqvmn1NDlgnJRDf8JZDaGPvmmbpBYnFX9SE/412 XryV85+3Vu6zdn7zwuF9A== X-UI-Out-Filterresults: notjunk:1;V01:K0:v03XoyZzUIE=:CMSxsMoNBp2Pb1i3RHNkhO 6bkt9XBu4PlDeJ2KiJhKS/b5ayZgF/fHAKS3JvpfU+fn9PJPSEjOieqW3DfBXQDx20pQnYjta 1fT550IorhVgKcfDmoGvhZpXG/N4B5dCZNjO4nOHW9b3SNIsWSHnffxpyt/PYF4s0M1sbzQ9K 2eLBA5+xHZEEWKswQZ4pAsYQwKQ+WsKS7DUpMWw4N1LaWY8BhaqdFXU19EHXlxX17/Yy/mLls YXyL+gsPyYJyxEGmFdI3QP/6IzuE83a2MdxbVNafp83ww8QC1WwibuurPRTlu3XTVmvzkVMhn 5TfUSkG81SXkB9F2XCl0KRTjO0x5hdo7yGxQYzxxWV99E3ZHe1ERg4IPFMS/7mYCBriG0uq55 aRTa45U/H8VmtF6kYShdG4s6DdUPGaGeu3wxSS1QDhCcfEENGzAn3qLyAkIuFkzA5AX/A7Qco 3v3BXnMjaKI1VjUikJsMwlhzMMFF3NAb45A8OgRt27f6XzrZ1b9rvl9H4EhdLB3mBxmm+CqK7 6Y2obsYBc3lwhnL8towJADh8hBVSeVPG/6MRrQu9eGjb05cOPklRBFqPx8EFDcVH2CbY1KVzQ OFA3hKlCid4YvD32sNEkUqAwhnqUCuuP4uWKNihdbEtkrWNl8lhunPeRBiMQ1vPNIz87rBqDo Js8NqgQi/6WiB3U336PjqdSjcWAOrSShcvhRq/MEZiPJBJx/LInuJprHCvQWuHI+GV8RnpUr6 sKIEAtVyMsZr9ovg Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1778 Lines: 38 On Monday 09 November 2015 22:09:26 Laurent Pinchart wrote: > Hi Arnd, > > Thank you for the patch. > > On Thursday 17 September 2015 23:19:40 Arnd Bergmann wrote: > > C libraries with 64-bit time_t use an incompatible format for > > struct omap3isp_stat_data. This changes the kernel code to > > support either version, by moving over the normal handling > > to the 64-bit variant, and adding compatiblity code to handle > > the old binary format with the existing ioctl command code. > > > > Fortunately, the command code includes the size of the structure, > > so the difference gets handled automatically. > > We plan to design a new interface to handle statistics in V4L2. That API > should support proper 64-bit timestamps out of the box, and will be > implemented by the OMAP3 ISP driver. Userspace should then move to it. I > wonder if it's worth it to fix the existing VIDIOC_OMAP3ISP_STAT_REQ ioctl > given that I expect it to have a handful of users at most. We still need to do something to the driver. The alternative would be to make the existing ioctl command optional at kernel compile-time so we can still build the driver once we remove the 'struct timeval' definition. That patch would add slightly less complexity here but also lose functionality. As my patch here depends on the struct v4l2_timeval I introduced in an earlier patch of the series, we will have to change it anyways, but I'd prefer to keep the basic idea. Let's get back to this one after the v4l_buffer replacement work is done. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/