Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3055718pxm; Mon, 28 Feb 2022 11:06:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQUT8ySiyQ9WfSjS0fB3EmbVav81lbQj0PqzKFQCjgG4RbuSvXtWP4OTLEdwIUNZuIHwXH X-Received: by 2002:a63:2155:0:b0:374:a199:c381 with SMTP id s21-20020a632155000000b00374a199c381mr18883872pgm.319.1646075165888; Mon, 28 Feb 2022 11:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646075165; cv=none; d=google.com; s=arc-20160816; b=1Dtv3stpLQ/A/m+gV5PREQ+iqg05xr3Qm1X2dn99JSz4Nl9fcZTauAZNWSHRhTdWta iAlRsEB3zu8RdyPq2F+BZPPhXU/2S6q48TColXYyY4mqV2uIKbWwp/rM96rq1H0N5TVQ lbmKngmc0QiJcrIoJ+AVcys4R0zzxeUohkbLxsTYsHVXYkChYtZKuB0jDaPCf6iilOwh Q94Vflv0vBDjc0+XUuaLZ+M2HCi15SJck6LMpdw3eLIAscFebjSlD5EUrGv6GbGnWgzp 4CL0xz0fbrU3+Q6gHyKUPZl+o5OLbknrxauRP7KOQqXK3YFLumE7gxsvLbvxfUC0Jg43 nM0g== 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=E0iIkz5uHWJtsoXeAkWT2e1MnU1M3yDSoa1B9WDhNOA=; b=aMxvCohJCHZolkw5h8HsrSuHC9RHcPogyUsAv7+rA0vPT1aeJqXQA68ZIqeQ6WNuFW wRazZM4/jbX0+x1C14AiwAMQONW5YpJnJl1pHN3yxto1SM1pasDV8rwArZ8++Pe1jV58 qcR/YtBHXGA+0mzE6EYP7LqDTphrcMorPmPiBXGhkcOpws0lZIvX/VpALlbJRNnVlnYe gJx1GThyMtwrVMWSLZUIzVfre2K3WNeT6nmQZDVHiqm1Wl/C7nfDLWjqlZ8wsIL6r5XG nz71m3LEPDq2EZ7o9wA/igSUMGa+A72AnXnlx3p6MQTf/Wf2Vz1zzzYY57IMOlVn/p9H ogzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=XYXgcGvo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l10-20020a6542ca000000b00372e861b616si11114950pgp.158.2022.02.28.11.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:06:05 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=XYXgcGvo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 220C658815; Mon, 28 Feb 2022 11:03:25 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237319AbiB1SgI (ORCPT + 99 others); Mon, 28 Feb 2022 13:36:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240726AbiB1Sfo (ORCPT ); Mon, 28 Feb 2022 13:35:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18D205AEDB; Mon, 28 Feb 2022 10:21:20 -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 ams.source.kernel.org (Postfix) with ESMTPS id D2351B81627; Mon, 28 Feb 2022 18:21:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E838C340F1; Mon, 28 Feb 2022 18:21:17 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="XYXgcGvo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1646072474; 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=E0iIkz5uHWJtsoXeAkWT2e1MnU1M3yDSoa1B9WDhNOA=; b=XYXgcGvoVCXgQUAB7Vz9CsdApL3I2knmdXAMh8LuZ+7pJyuLFk5G4oSKbOMtyCqqEEPETY 24DzY4e3f4DEvkiOLqe3X8YKM0UlY6ll5ijBcius1BlP/ADCRf3Yxg6GsxK7gMIRGW1NEW pSwPt4Lylt6hdFPd21WqhUbv3q9d5MM= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id f8da637a (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 28 Feb 2022 18:21:13 +0000 (UTC) Received: by mail-yb1-f169.google.com with SMTP id b35so22239895ybi.13; Mon, 28 Feb 2022 10:21:12 -0800 (PST) X-Gm-Message-State: AOAM5307QW332jo5sc29OuNwiuFIPHw6RoUVxAa3djMFQN7NXk+fmaxq 2ZuCWNsYDUctA1tnFiDrCi8U1oe6ffpjVR4VMfs= X-Received: by 2002:a25:e204:0:b0:610:cb53:b753 with SMTP id h4-20020a25e204000000b00610cb53b753mr19163518ybe.267.1646072472285; Mon, 28 Feb 2022 10:21:12 -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 19:21:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 2/3] ACPI: allow longer device IDs To: "Rafael J. Wysocki" Cc: Alexander Graf , Len Brown , Linux Crypto Mailing List , ACPI Devel Maling List , LKML , Ard Biesheuvel , Greg Kroah-Hartman , Mika Westerberg , Andy Shevchenko , Hans de Goede Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Rafael, On Mon, Feb 28, 2022 at 7:19 PM Rafael J. Wysocki wrote: > Increasing the ACPI_ID_LEN value is fine with me, but the patch > changelog is not entirely accurate. > > The ACPI subsystem uses struct acpi_device_id mostly (if not only) for > device ID matching and it is generally used for creating lists of ACPI > device IDs in drivers (and allow/deny lists etc). The device IDs > extracted from the ACPI tables can be longer than ACPI_ID_LEN. > > This means that drivers cannot match device IDs longer than 8 > characters (excluding the terminating 0), because the IDs in the lists > used by them for ID matching cannot be longer than this and not > because the ACPI subsystem is limited by that value. Thanks for your notes there. I think Ard more or less pointed out something similar too. I'll amend the commit message, send a v2, and hopefully this change is okay with Mika/Andy/Hans. Regards, Jason