Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp652007pxm; Fri, 25 Feb 2022 16:16:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTx9Yyfq0mir/be0YP3Gv/RBo0kGUty3HJXrmWLejsUYJnta8EUjhHTrpPnpLzbXW7sznS X-Received: by 2002:a17:907:3c03:b0:6cf:65ec:5f28 with SMTP id gh3-20020a1709073c0300b006cf65ec5f28mr7861269ejc.324.1645834604666; Fri, 25 Feb 2022 16:16:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645834604; cv=none; d=google.com; s=arc-20160816; b=XkGIqC51sf/zAbodf6BF546JWPV/FzfJNZggWEZjk8e6k8gjWSpyFnhme6pGCELE9I C85zl92Jzi+r9lJ6NaD6Wthmw9ZU7zyFB8wfCkN3PLKAdMewEJ4QPvFxfZDpLVNzhD07 dmY0enFnF629PcwXwYztWVBSMWvyrxJp/hJF+m7q1Rj1GE7RBQHiN1KxUFlJQ9TzOSNZ /6sAtsmN9swPa0JLzMOdb7M+Ua7hz5fiOoOd28RB3eCTVNmfYt8nN/dtq9lWdlHGJOKv SOId3su3sSOhL5JiFt+KvbwbhewaOKrq8WiYjIFCMdI/SNgmlgFNviJq0L74jS5MSCCi 0N8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q2wISHZch5FoXIRGg0Ido8HLXZIaFmbc/fNZyR/oiGo=; b=JohVSy4e+qwv2aEoVu549F3MuxjmjB5LDSghvX91riXGjICnzfrO9DMxGw7hcatqWQ aj2R1Ck5GfQAR4BpR4gJ4rBz+PtVuwyMbKzzNYuBpB5uH4VcubF6xYPLWle0jYT/yJzF 9tSs+RjQv1XukQldFSU2qmUkJar0WTFFAOkTkUDH/9EsqjGUv1C5cMVaZMA7oVKhEB0T CSToIYC0L6MYCGJw+fov5YzQ+RBCqzYAJQpmvUqUvlG/P3ofvQNF4QM5Hz16ctAGDEUn vBtb8zt7xZBgA99HHLU9RqUu3/SuhEIruBxgsaPyJpS/MkktjGH5rObhlKUiYuU4wAB6 POVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=nFNHm3DJ; 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 r26-20020aa7d59a000000b00410b0ba16b3si2459731edq.478.2022.02.25.16.16.21; Fri, 25 Feb 2022 16:16:44 -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=nFNHm3DJ; 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 S243546AbiBYRR0 (ORCPT + 99 others); Fri, 25 Feb 2022 12:17:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243541AbiBYRRY (ORCPT ); Fri, 25 Feb 2022 12:17:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8EAB21D0AB; Fri, 25 Feb 2022 09:16:50 -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 5580161D7B; Fri, 25 Feb 2022 17:16:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0EA1C340E7; Fri, 25 Feb 2022 17:16:48 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="nFNHm3DJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1645809407; 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=Q2wISHZch5FoXIRGg0Ido8HLXZIaFmbc/fNZyR/oiGo=; b=nFNHm3DJAZM9La/4dSDrNEFAbgBR8TRA3LgCTyy02tO3G4D6UQgdGPopzGYCrFZ5YyNgQv VytZ2GuXm7KXddwtPYc4LKfJN3k4RhzaC4wDYCTJI+tzujMEkTVwjU0JkU+VlTAwktfVls 9ApNjGuyTePw2TWQz2LOkxloJX+UFOY= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 5be5d1f6 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 25 Feb 2022 17:16:46 +0000 (UTC) Date: Fri, 25 Feb 2022 18:16:43 +0100 From: "Jason A. Donenfeld" To: Alexander Graf Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Len Brown , "Rafael J. Wysocki" , Greg KH , ardb@kernel.org, dwmw@amazon.co.uk Subject: Re: [PATCH] ACPI: bus: Match first 9 bytes of device IDs Message-ID: References: <20220225155552.30636-1-graf@amazon.com> <7a98e9c5-e0e5-9bf9-71b5-f75b9ddcdc4b@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7a98e9c5-e0e5-9bf9-71b5-f75b9ddcdc4b@amazon.com> 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 Hi Alex, On Fri, Feb 25, 2022 at 06:09:59PM +0100, Alexander Graf wrote: > You have to make this "VM_GEN_CO". I now match the full 9 bytes - unlike > the previous patch I sent :) Ahh, so no NULL byte, but presumably no need because strncmp is used. Great, seems to work. There's the other aspect of udev matching, by the way. Have you tested what happens in userspace? Need be, we could make the vmgenid driver a bool instead of a tristate, but maybe there's a way to do that right? Jason