Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F147C54EDA for ; Thu, 22 May 2025 06:57:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C6889672E; Thu, 22 May 2025 06:56:30 +0000 (UTC) Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 01E78964EE for ; Thu, 22 May 2025 06:55:30 +0000 (UTC) Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-67-WEFbiKxtMiGfDILdaQdERw-1; Thu, 22 May 2025 02:55:25 -0400 X-MC-Unique: WEFbiKxtMiGfDILdaQdERw-1 X-Mimecast-MFC-AGG-ID: WEFbiKxtMiGfDILdaQdERw_1747896924 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C1085195608E; Thu, 22 May 2025 06:55:24 +0000 (UTC) Received: from dreadlord.redhat.com (unknown [10.64.136.70]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D30D31958015; Thu, 22 May 2025 06:55:22 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org, tzimmermann@suse.de Cc: intel-xe@lists.freedesktop.org Subject: iosys-map: refactor to reduce struct size Date: Thu, 22 May 2025 16:52:09 +1000 Message-ID: <20250522065519.318013-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: cg7jfzo3VUh596VB7iy7_mP2yWUYVPWCGvAk4Ro94Fc_1747896924 X-Mimecast-Originator: gmail.com Content-Transfer-Encoding: quoted-printable content-type: text/plain; charset=WINDOWS-1252; x-default=true X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hey iosys_map users :) I fell down a bit of a refactor hole today, it was just random and sometimes you just have to let these things run their course. I noticed iosys_map has a 7-byte hole in a 16-byte structure, and it gets embedded into a bunch of other structs and it offended my sensibilities. This series makes iosys_map be 8-bytes, using the bottom bit of the void * to store the is_iomem. Patch 1: adds new accessors to start hiding internals Patches 2-7: refactor all users in-tree to use new internals (hopefully got them all) Patch8: moves the internals around to catch anything not in-tree. Patch9: reimplements iosys_map as 8-bytes by hiding the is_iomem inside the pointer. Dave.