Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5880113rdb; Thu, 14 Dec 2023 02:11:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9ZIPSm7Wr4nF5em/0FChmrfHRuC+bXKiR2p80ky64kjUfBPOV8ZTe4DdAsKw/9skAap9O X-Received: by 2002:a17:903:245:b0:1c5:d063:b70e with SMTP id j5-20020a170903024500b001c5d063b70emr5122876plh.53.1702548691199; Thu, 14 Dec 2023 02:11:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702548691; cv=none; d=google.com; s=arc-20160816; b=DxOliuvTRwrYWztG6aXuvitA2bO1lDA/4IZv/JHmdrvYg6k8uI47JDkkgWtpDFIDTS i3KilyRB5QPVpb90BQBzXskzz/B6UKPu92i9tQx0TuAGr0yK8h5wrwJgqz2gSaZMEPYM JWHJYWv1cLEzI8pVDRSyLgwWwbE1LMHlDU9HLAZOeQDgyY7z2/votZgVa2A6xhFtBO22 eyUTjSqTIs9PmUWzQQMLB7rvpn9zxbRAt3X8zbwCqrvx1svA4CLyEF/f0TX4ZNIaVEWQ sKEoEdVhEw1u+n2DD+fWetCOeNXDd2/NwqzDjPSri/+/AN5Gs//gxPjvUesmdkYTsRSV xCGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:date:cc:to:from:subject:message-id :dkim-signature; bh=DwJPwRC5n42ZUrIXnJ3iNJ62mEI4hAuX8AmnWt5GOxU=; fh=q8ixFDdUYOCnxK9gocNGeDijua8aFkkxymqNDyvo2cs=; b=Reu7ya/mKECgOl25TqMsDMq+IRPdDYhVTqOWMcR9v27bd5VMBeF5GpKwu3z62wqNQF cWOEZTUR2s9XxUQ1iwf+DJTfUjMijDPoAqf411dgmtGLknV1KlSlA+sV0gYgIrB1cC15 K5I7i6dNQdWKDWPSbCFBpyQCUgwAybrg/Rhd88aXQ1H50WjlNrg3my97UGPSZqN+ebjG KGVjDxnrIT09unXJ8ydx8Wiu44Q5dWT9TQIATCBJ8Qzek9aD5pXc68jI8wCmq6Yt5gfx VKYrBNJ0GAwp1OCdl2fYsP/OJVDPUXywaTqqLVCmrA0rD2DDPDgfY1R+2K5ueqT1FKt6 ECPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mwa.re header.s=google header.b="AAH5T3/r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mwa.re Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p9-20020a1709027ec900b001cfb4f3da6csi10929421plb.44.2023.12.14.02.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:11:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@mwa.re header.s=google header.b="AAH5T3/r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mwa.re Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ED5F28028D6D; Thu, 14 Dec 2023 02:11:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443536AbjLNKLT (ORCPT + 99 others); Thu, 14 Dec 2023 05:11:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443503AbjLNKLS (ORCPT ); Thu, 14 Dec 2023 05:11:18 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E771B2 for ; Thu, 14 Dec 2023 02:11:24 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40c39e936b4so54999585e9.1 for ; Thu, 14 Dec 2023 02:11:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mwa.re; s=google; t=1702548683; x=1703153483; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:date:cc:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=DwJPwRC5n42ZUrIXnJ3iNJ62mEI4hAuX8AmnWt5GOxU=; b=AAH5T3/rqEOq2dzaJ2Ufabe5Mk6VaPvprls3UoMcYTv3bRd2kHUJyazl7R9nr1vPWj 5ZUCc3fuGsOgDCOCFmc1+o6j+Ydd79pY7yi8VIg65Kk1fIDUlm3uKrq/2Vk10bTOjVTM /4G/SxdXrDOhOnPCKjuC070BEjLNgO3j8jLtJ2W6ER8/JkTxT39VXK42aR7ohNzBmBRj gYPaL3NwFw7I2y8gugnda4SgSqL2eDIAoYjft1emCBKqLLapFCHlvH2uPHSwI6IlFTPc c1lUSiMohcKB8urIMmbh7r/4KPtRxbVfOR72xm7HXUbPE7lBnEa+TvVFA/j8uQ2Ow4QM Vhew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702548683; x=1703153483; h=mime-version:user-agent:content-transfer-encoding:date:cc:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DwJPwRC5n42ZUrIXnJ3iNJ62mEI4hAuX8AmnWt5GOxU=; b=jhFQbY3u0J1EL7TektzjEJGyd0yUwwLgJ3ZGQ8AnLN+puWfRGrcpdzjZCNb0sDz11o xK3fwtIyapHLkJGx4MMoDViFS3AqdPdmEfyeA55YYyAVjvd9nYjV+66NpaM85aC2LAOl 6s5ti13smgW8gsXzO3WY9aTNesOj7sSx4T+1C2DtldCmjtsFsvEHgpu3znDJtdYsvmJd ST5loz95MTq1pw3DzSDJFsIfzId/7lyMaDQMrP2i2b8Ms164UJSY9RqdFuPHlQWOEvMQ 8K6Lv5wzIZkFjh22uREAAlIosSLa3b/clTCXdYr5mHlLKeIsMVlWy3NV/4nWajNviNgW Ww+g== X-Gm-Message-State: AOJu0Yz6HFoygLyNxFaxJQyeh4RybGlFX/sTRnpuTYpnyhTDuskzibi0 +ihkHHw1TzKUCR4TnNxpJF7iAfyvgGDJDWNlHCGdUQ== X-Received: by 2002:a05:600c:3b1f:b0:40b:5f03:b39b with SMTP id m31-20020a05600c3b1f00b0040b5f03b39bmr2857734wms.189.1702548682746; Thu, 14 Dec 2023 02:11:22 -0800 (PST) Received: from 2001-4dd0-53c2-1-52b8-d67b-716b-9a96.ipv6dyn.netcologne.de (2001-4dd0-53c2-1-52b8-d67b-716b-9a96.ipv6dyn.netcologne.de. [2001:4dd0:53c2:1:52b8:d67b:716b:9a96]) by smtp.gmail.com with ESMTPSA id v6-20020a05600c444600b0040c4886f254sm14119157wmn.13.2023.12.14.02.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:11:22 -0800 (PST) Message-ID: Subject: element sizes in input_event struct on riscv32 From: Antonios Salios To: dmitry.torokhov@gmail.com Cc: rydberg@bitmath.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Henrik Weinstock , Lukas =?ISO-8859-1?Q?J=FCnger?= Date: Thu, 14 Dec 2023 11:11:18 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:11:30 -0800 (PST) Hi all. I'm having trouble getting evdev to run in a simulated Buildroot environment on riscv32. Evtest (and the x11 driver) seems to be receiving garbage data from input devices. Analyzing the input_event struct shows that the kernel uses 32-bit (aka __kernel_ulong_t) values for __sec & __usec. Evtest on the other hand interprets these variables as 64-bit time_t values in a timeval struct, resulting in a mismatch between the kernel and userspace. What would be the correct size for these values on a 32-bit architecture that uses 64-bit time_t values? Kind regards --=20 Antonios Salios Student Employee MachineWare GmbH | www.machineware.de H=C3=BChnermarkt 19, 52062 Aachen, Germany Amtsgericht Aachen HRB25734 Gesch=C3=A4ftsf=C3=BChrung Lukas J=C3=BCnger Dr.-Ing. Jan Henrik Weinstock