Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4253314rwi; Mon, 17 Oct 2022 03:54:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mH6Z9kH12e1BSz9y/4ksyVCM15lvOU5G2kPFlNIOpEE3Df8wqzrvyAgiW/9DjwyEUw+Nh X-Received: by 2002:a17:902:f641:b0:17f:3633:5439 with SMTP id m1-20020a170902f64100b0017f36335439mr11425439plg.94.1666004040112; Mon, 17 Oct 2022 03:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666004040; cv=none; d=google.com; s=arc-20160816; b=a8qlUEsdWqUwW6NxseL8WHUp2WurPID2vpjl5y6CawVMr+DHC31le1Mrbs90F1fuRC hr8dMokZdBXMo/KANLUs7UlcJNTRYIUb52mPdA4wVCIWsMapknW1FrnLKyW0RRgQKrCO EMO1MI/tD257679sCptB+gOUnAiK/tw4SeVm8uN7bV1/Kw7FXaz/loTNUsiKgpinU2pj ip6rFeeFmstKeK6TWH4RebkEKJ6epRvBIzElf0XkSrESwStHSdt/H3hpSk6MAak2BkdI 2o/1CRsm0Z8wyVOCm9eYdFaXars/MWxH1U8N9sluwxrVH10i5iwvr5OrXgIe6lQhRrdd KlnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jZzPADXvkbVwtWSLL6OPqiE8a3wnp+/1nc9Urmv18BU=; b=O8xiGch6JowIIQbrJ0aCa6EQfRam/LKhs0QM2fgErZ+JZmiKLp7CVA5YyVc0twNfKN 8N0X+yBgsdDnxIRIwwuhnnUbm9klqtkkXLJbTtzuRxd2yH53APuB13HkeORc7608Wfua rmcstKNkeKiLg3hjM+cbT6jpn39FP5+wJ+iqsFBl+zOKfbEi9BtcAMr45wBOR2bkXRoi qV6UGqmCx5mS/ncdt0rq4b+M5zPcmrKw8datJqc/Yvqp+cZ9z225vV4qvVkywV9DNief Iu1poX7QOneb9jwVQzsV25wRVjyxFOMPHvdt895NapNxd+h8RyXpbGHT0SoPas/WYpPr lw3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a17090302c700b0017532e01e57si11113322plk.200.2022.10.17.03.53.46; Mon, 17 Oct 2022 03:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbiJQKqR (ORCPT + 99 others); Mon, 17 Oct 2022 06:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbiJQKqN (ORCPT ); Mon, 17 Oct 2022 06:46:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 15EBB18B3E for ; Mon, 17 Oct 2022 03:46:11 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 29F591042; Mon, 17 Oct 2022 03:46:17 -0700 (PDT) Received: from e122027.arm.com (unknown [10.57.1.201]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B3B293F67D; Mon, 17 Oct 2022 03:46:09 -0700 (PDT) From: Steven Price To: Alyssa Rosenzweig , =?UTF-8?q?Adri=C3=A1n=20Larumbe?= Cc: Steven Price , Rob Herring , Tomeu Vizoso , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Robin Murphy Subject: [PATCH v2 0/2] drm/panfrost: Fix UAPI for C++/BSD compatibility Date: Mon, 17 Oct 2022 11:46:00 +0100 Message-Id: <20221017104602.142992-1-steven.price@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 The Panfrost DRM interface to user space is uesd in Mesa for targets other than C/Linux. Specifically the header file needs to compile in C++ code and for FreeBSD which shares the same UABI. The first patch fixes the C++ compilation issue by removing the (unnecessary) type name from internal structs which is invalid in C++. The second patch technically changes the UABI by changing the header values in the dump format to be native endian rather than fixed little-endian. Since (a) there are no known big-endian Mali systems, and (b) this has only appeared in -rc1, this shouldn't break user space. Tools can use the 'magic' field to identify the endianness of the dump if they want to support big-endian. This is effectively a 'v2' of Adrián's series here [1]. [1] https://lore.kernel.org/r/20220920211545.1017355-1-adrian.larumbe%40collabora.com Steven Price (2): drm/panfrost: Remove type name from internal structs drm/panfrost: replace endian-specific types with native ones drivers/gpu/drm/panfrost/panfrost_dump.c | 36 ++++++++++++------------ include/uapi/drm/panfrost_drm.h | 36 +++++++++++++----------- 2 files changed, 38 insertions(+), 34 deletions(-) -- 2.34.1