Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2259438pxm; Sun, 27 Feb 2022 16:18:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ5H8Jrt/ok7uPB9xqzej43otlVb30bVM2F8GxzqMURz0rF/XI7KTt81apkL590m7zAMJy X-Received: by 2002:a17:906:2c45:b0:68e:9bdd:f625 with SMTP id f5-20020a1709062c4500b0068e9bddf625mr13305511ejh.374.1646007482723; Sun, 27 Feb 2022 16:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646007482; cv=none; d=google.com; s=arc-20160816; b=YWAX6sImJxWJDv/MNdDJsYyTDjfbEYhquL5XM440Fx93F5RkFVE5PW+ejsuC3Gp+sj /c6FGy1+haRZmjce54gTqyndsL1VcAxGh6h0o9sebjshIY39uo4TODGozncYO19XlyKw BFZyL4BFiuovX6WKUMFXp8wpYbkSAY3syB3U2z/nI7W6iERG9tlA2dQu2BV8CiCJTky4 V9VHpXBECcLB9lZ1F6NnjbosPhRb22l3w5qm2gL79yJb7XF7un5eIV39HCEzkew5vbWm RrlmBQdsp1IwJ8ou4njmQpHoVJ0/pF+oYR6cXCeIdc6HvFP/PD/aAEfDhBBA6GssLkxb izsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cPJiLooKbNUohnU6yXN63L1h4yYqJ923mGb0t2sRAmM=; b=R5nLNr8OfnoOd69jwEkGlvNbfodVpkMgMEIHg3X+ZOtQjWuEItelyNlY+rMVnr0N/X tKe33jtnA8vgm2ZcB1eVVr/gCGPUH6lL7C67fZsqSDpCvC/2UIdRa3fgAmowR+bLyz+D IPpZRZQ/4jtXn9w/CoNGct2+yBK6YWLLV8h80wYqDX+0rVlln7V9BAyeSe4A2ig38pI3 xRGUPOn+Jaie+6kLk70J0fEUtVyyndA/wUjeyW3MxBi9fCmILfpNFHYgGRhscPXTSzqo zymktrkgIiEzylqaV8lVHewL7M8lQtxIetFd/NArncR13DbbuhIrYF8IAnC9q9KFzNtS JenQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=goL89XZS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r21-20020aa7cfd5000000b00413c0c277c8si309271edy.274.2022.02.27.16.17.31; Sun, 27 Feb 2022 16:18:02 -0800 (PST) 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; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=goL89XZS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230392AbiB0X2F (ORCPT + 99 others); Sun, 27 Feb 2022 18:28:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbiB0X2D (ORCPT ); Sun, 27 Feb 2022 18:28:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 618F8638C; Sun, 27 Feb 2022 15:27:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F39C4611CF; Sun, 27 Feb 2022 23:27:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0601C340E9; Sun, 27 Feb 2022 23:27:23 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="goL89XZS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1646004441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cPJiLooKbNUohnU6yXN63L1h4yYqJ923mGb0t2sRAmM=; b=goL89XZSsZPfaum9fcpaXArg1yGEVHqkD3gJbN6h+aFDXgFSk3FtmNY1XHGFlU+zie+ebw fT4UAbs+ItDDw0QJuyMeed/Dghxx9UVojWm5f0rRImhNElq0sVfCIbyDdQBVbN+4oUuSwm /NzJUKJdUYotOeOWxmz+2GkyXgatyeI= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 011a27c7 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 27 Feb 2022 23:27:21 +0000 (UTC) Received: by mail-yb1-f171.google.com with SMTP id j12so17085495ybh.8; Sun, 27 Feb 2022 15:27:21 -0800 (PST) X-Gm-Message-State: AOAM530u4qG1qaPgTNsEI8zmuELPSv8QaLeYFk3RqBgIWDTztXJuXTg7 eoLNjFbuBcp3KqBgpVWc01lH4257yLyiL3NoqvA= X-Received: by 2002:a25:238d:0:b0:619:3e19:b06b with SMTP id j135-20020a25238d000000b006193e19b06bmr16106668ybj.382.1646004440064; Sun, 27 Feb 2022 15:27:20 -0800 (PST) MIME-Version: 1.0 References: <20220226220639.1173594-1-Jason@zx2c4.com> <20220226220639.1173594-3-Jason@zx2c4.com> <0c73d29e-e558-efb9-d0d7-c612b2bb7e90@amazon.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Mon, 28 Feb 2022 00:27:09 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 2/3] ACPI: allow longer device IDs To: Alexander Graf Cc: Len Brown , "Rafael J. Wysocki" , Linux Crypto Mailing List , ACPI Devel Maling List , LKML , Ard Biesheuvel , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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 Hey again, On Sun, Feb 27, 2022 at 1:43 PM Jason A. Donenfeld wrote: > > Hi Alex, > > On Sun, Feb 27, 2022 at 12:42:03PM +0100, Alexander Graf wrote: > > > To allow device drivers to match identifiers that exceed the 9 byte > > > limit, this simply ups the length to 16, just like it was before the > > > aforementioned commit. Empirical testing indicates that this > > > > > > This is only true for 64bit systems where padding automatically bloated > > to 9 byte array to 16. I still believe the patch is fine as it is, but > > there will be minor .rodata overhead on 32bit targets which you may want > > to quantify in the patch description. > > Good point. So I just tried this out with a 32-bit i686 kernel and the > results are the same again for the size of vmlinux. I then ran `objdump > --headers` and looked at the size of the .rodata section, where it's > also the same. I'm not quite sure what to make of this, as it's not what > I was expecting, but I think I tested it right. So maybe we're lucky > here? I tried a little harder to get _some_ difference on 32-bit, and managed to get one by doing i386_defconfig and then switching off modules to make all M into Y, and then compared sizes: vmlinux: 25590780 -> 25598972, so a 0.032% increase. bzImage: 8698944 -> 8699424, so a 0.0055% increase. So it does increase, ever so slightly, but a) on 32-bit, and b) a super, super tiny amount. In other words, I still think this patch is very much a-okay. But very eager to hear from Rafael on the approach. Jason