From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5D84C433EF for ; Fri, 25 Feb 2022 17:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243544AbiBYRR1 (ORCPT ); Fri, 25 Feb 2022 12:17:27 -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> 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