Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1702585ybl; Thu, 5 Dec 2019 05:48:35 -0800 (PST) X-Google-Smtp-Source: APXvYqy2/zASlrjijyCHWTrh5d4Tyn0dpsp7YlmQazGSgtMshhowEBMTGzTj8ToNppEEe4qJoSjx X-Received: by 2002:a9d:708f:: with SMTP id l15mr6865330otj.286.1575553715334; Thu, 05 Dec 2019 05:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575553715; cv=none; d=google.com; s=arc-20160816; b=AvXxU9iK9aT093AZrmy1a1reBAYdczwXRNVW+kEu2HaLEFrm1chU9DaZC83kL7k5H1 p79k4kg38xqQDGG0AVZNowJ1xiNK+HJx/AnEXOclFKe2pJnvYQWMD4ShX6qhk5d2idaH PBAVoA/KA8qd7Jql//O+VDRZ0O7qBovDkAsyh5yWkCpZExOnAVhSsrxuo5BZrWHU1FgJ V3uf3Jf+bu9k859HOM3d1Ez9OOnWm2diWEF5znow2XTIpuJx3z2O8nl2xa8AtTTZmLfh kFHVQSOOg8VV+ncUwQZL8g7OMKKFhDnuuiAPcYJYMarDMkj1OIEWL0ve0kr46w9UZcJ3 fnRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=F1r6bkuEgTVPA/sHRf3ZXJ9F5TKgMqD4MX5r/fBzobg=; b=D9dA7xc56egJv4+LHhN7RJtLA6xaL58PzhmtJfuVhFYg45/I4efzifQOGegY1SDtHd pEIVZ9PKMOayj2UohCySjVZMpdzuCIlfd6e2JyCCgMtzWsRXqxnFxlJ1ds6PvvCTqQyj D+ncl3W9cGMCShwQlZGEWGSGxlE3Xqz2QIhAv7EA4C5gBaljD0kDEhBo0s/ZUhY5qLRP mKQNfwrPEjTwUmhDFTQKiolDB5LkQZo7adwY+XqiKhDFCs1VPpcSYqgIdSXK7/SUofu6 ibkM1JQEqB5FRMran0NHxZxJyIuq2FcS44/b7NfppCBf7kCGKvVYJgjWrC8j5U/HgchL w4Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ZIFFnJBq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w129si4925646oig.83.2019.12.05.05.48.22; Thu, 05 Dec 2019 05:48:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ZIFFnJBq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729549AbfLENrm (ORCPT + 99 others); Thu, 5 Dec 2019 08:47:42 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:43531 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729165AbfLENrl (ORCPT ); Thu, 5 Dec 2019 08:47:41 -0500 Received: by mail-io1-f66.google.com with SMTP id s2so3616469iog.10 for ; Thu, 05 Dec 2019 05:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=F1r6bkuEgTVPA/sHRf3ZXJ9F5TKgMqD4MX5r/fBzobg=; b=ZIFFnJBqLN/6IdRGI1+Ng6EjWxgJf3yiAG6DhscHjReQD9TQQIXwNwSSFtRP9WbWNH a9538vG9HoGCIdi7owZ1/+7GuxawncmtBAB5kf3W4Znhs6gOJjBM36o4kj1DqU2GvLup tkShLaHnbrqfB5Yo8zyZS+F1OwBNhRt+N0wERiwDBkSTSEQUzDMrskKy+wlDWuRCqfHB TTctxqHrTTUh/2O5NQIS6zh6L2c0MKEsy7kJshChlQ1Jmg35IGZmOgCApEA3gJI1paiI aP8z8ZyM6F5aCw584lIP/Qr6fdNO2yd3K1I+sahsr9VtxLJMfPyg9RYyuctnwnlv6DSW W9eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=F1r6bkuEgTVPA/sHRf3ZXJ9F5TKgMqD4MX5r/fBzobg=; b=P3nj3jlEa4Ye199CRu3Em2k6SRAIu06AYOVmqqlypGWzbH/P98SYOBQLODZsXnX3Hg z0ylkkXpEuEpZo0aDtDeYkB6TLPBQHtx6qdM0uSHUdxLxMdIu32PJerAbV3JwtbwmZOT DFoQoXOn8ZSIXfk7PPU6cvxK+Hlb5HNqchdPA9O2FRju/boSWNxQKRrnEZOm1YJENfHR ZIWtnUsZzESv/37BreFC07ybjQcaAe+gi8v43uxlh4XCApYnXs9IfFkRJ3T+dE0GPgrS ad/0N39B//eBA33+xZbJQmEc3GCH7cVV6ORx9aRbiYxxQIenGvtA4cK3ePdI4jHomEHZ L8rg== X-Gm-Message-State: APjAAAUisxBdCO2fm+E08Kxa2o/9U+gnBYDOgRKNuSaoxDyYWV1iAp4y u1CKzKyychfEbrLdp0kfxMnH2VcnJhd5GgtnRy0mjw== X-Received: by 2002:a5e:9314:: with SMTP id k20mr1175995iom.6.1575553660941; Thu, 05 Dec 2019 05:47:40 -0800 (PST) MIME-Version: 1.0 References: <20191204155941.17814-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 5 Dec 2019 14:47:29 +0100 Message-ID: Subject: Re: [PATCH v2 10/11] gpiolib: add new ioctl() for monitoring changes in line info To: Andy Shevchenko Cc: Bartosz Golaszewski , Kent Gibson , Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 5 gru 2019 o 11:27 Andy Shevchenko napisa= =C5=82(a): > > On Thu, Dec 5, 2019 at 11:42 AM Bartosz Golaszewski > wrote: > > =C5=9Br., 4 gru 2019 o 23:34 Andy Shevchenko napisa=C5=82(a): > > > On Wed, Dec 4, 2019 at 6:03 PM Bartosz Golaszewski wr= ote: > > > > > +struct gpioline_info_changed { > > > > + __u64 timestamp; > > > > + __u32 event_type; > > > > + struct gpioline_info info; > > > > + __u32 padding[4]; /* for future use */ > > > > +}; > > > > > > Has this been tested against 64-bit kernel / 32-bit userspace case? > > > > > > > No. Since this is a new thing - do you think it's possible to simply > > arrange the fields or add padding such that the problem doesn't even > > appear in the first place? > > Yes. this can be done, though be careful about potential endianess > issues (the ABI must be tested on BE as well). > > So, the test cases, I can imagine of, should include (k - kernel, u - use= r): > - 64k-64u: LE and BE > - 64k-32u: LE and BE > - 32k-32u: LE and BE I usually use qemu VMs built with yocto for testing but I don't see any way of creating a 32-bit user-space with 64-bit kernel. Any ideas on how to prepare a testing environment? Bart > > -- > With Best Regards, > Andy Shevchenko