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 75A4BC61DA4 for ; Thu, 9 Mar 2023 16:26:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbjCIQ0g (ORCPT ); Thu, 9 Mar 2023 11:26:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbjCIQ0O (ORCPT ); Thu, 9 Mar 2023 11:26:14 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172E9FAFA9 for ; Thu, 9 Mar 2023 08:17:48 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id a25so9333321edb.0 for ; Thu, 09 Mar 2023 08:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678378599; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=pU1OTBYl8ElxfZaqjfIJsMTqsKjO/PQMi+tQNnzKT4Q=; b=LhpPkPEZNcA6deEMbxuAY4BI/bFxp9zl0nO+hgsnLAiOSJkKjT00UwaUDG0PHiiz3/ nEwQeuirJtr8wgHLXWy9IgZdMD8SlsgN+LaLMBNQkYqRi+TR0N/ojIl0BI+BC1cB3po8 AKLBGBReYfs4R/dvrq6Kz3qLcwgmqJkXDbNgBMRhaaQYUR/s+UmACSYpM7UzPzFP+EC3 Euhjxdc0eh2oEicLY1rKrEhBYAJHD1qM5zFKHZZ7EaSfxH87mxzZSWrSdec0qtGPEf+7 5ZQh6jdzQeWaSPX5ScfB6GKvZ3OYHtyiKaqrgWCWwvaMA7fetS6SDHjp3WC/0mJNEJxO DW3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678378599; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pU1OTBYl8ElxfZaqjfIJsMTqsKjO/PQMi+tQNnzKT4Q=; b=WIOwCjlGHjsusRtfUgd2UXTkKu23KaSD55J2CPP8RgPGUSgK33vVWJyqTdXVonet7M 39oqkew6T1Nvq7XQ/gOxZvYgnAsAtBR+0f5bcB6dB65LFJmXaNdmbw1xixjd4ScIWPpT 4MUng8q7OhUjwdhA+V8tbongXrQTkbBvDBr7tFw+BncaSWQxGdiMRgh8GFF1WeVaNJW7 EycAFIWaLFVd88LF83v1F43RhYFU+OG78cTwra3bfuoP33VUfpiOollX/zsWu/gqrAGZ Ziv+nQhUNa7Y/10h/eLCf6MX6hIk3fzak28vpr7x0enslX4mk0uVcc9X+ZGfqU40vUP9 /YZw== X-Gm-Message-State: AO0yUKULH46TOFXlqRypoqB/mcwp7oeQAhnir9vPMX0xFEDR9c1qsw9e a4ZjkYu/UWGN0elgSY++mYzEEsWX3e+2HCylcSE= X-Google-Smtp-Source: AK7set/uDxSQX6guni2q9LjuMZgDKvnwtVPDVc/y4ZwVZTtKpMFGC+aDylsQfmADZ8cH166t4rv0qg== X-Received: by 2002:a05:600c:1906:b0:3eb:3c76:c23c with SMTP id j6-20020a05600c190600b003eb3c76c23cmr20444802wmq.3.1678378147773; Thu, 09 Mar 2023 08:09:07 -0800 (PST) Received: from localhost ([82.66.159.240]) by smtp.gmail.com with ESMTPSA id z18-20020a1c4c12000000b003e876122dc1sm216880wmf.47.2023.03.09.08.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 08:09:07 -0800 (PST) From: Mattijs Korpershoek To: Jason Andryuk Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, Phillip Susi , stable@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org Subject: Re: [PATCH v2] Input: xen-kbdfront - drop keys to shrink modalias In-Reply-To: References: <20221209142615.33574-1-jandryuk@gmail.com> <87359gkc1d.fsf@baylibre.com> Date: Thu, 09 Mar 2023 17:09:05 +0100 Message-ID: <87o7p1dhzy.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On mer., mars 08, 2023 at 11:26, Jason Andryuk wrote: > On Thu, Dec 15, 2022 at 8:54=E2=80=AFAM Mattijs Korpershoek > wrote: >> >> On Fri, Dec 09, 2022 at 09:26, Jason Andryuk wrote: >> >> > xen kbdfront registers itself as being able to deliver *any* key since >> > it doesn't know what keys the backend may produce. >> > >> > Unfortunately, the generated modalias gets too large and uevent creati= on >> > fails with -ENOMEM. >> > >> > This can lead to gdm not using the keyboard since there is no seat >> > associated [1] and the debian installer crashing [2]. >> > >> > Trim the ranges of key capabilities by removing some BTN_* ranges. >> > While doing this, some neighboring undefined ranges are removed to trim >> > it further. >> > >> > An upper limit of KEY_KBD_LCD_MENU5 is still too large. Use an upper >> > limit of KEY_BRIGHTNESS_MENU. >> > >> > This removes: >> > BTN_DPAD_UP(0x220)..BTN_DPAD_RIGHT(0x223) >> > Empty space 0x224..0x229 >> > >> > Empty space 0x28a..0x28f >> > KEY_MACRO1(0x290)..KEY_MACRO30(0x2ad) >> > KEY_MACRO_RECORD_START 0x2b0 >> > KEY_MACRO_RECORD_STOP 0x2b1 >> > KEY_MACRO_PRESET_CYCLE 0x2b2 >> > KEY_MACRO_PRESET1(0x2b3)..KEY_MACRO_PRESET3(0xb5) >> > Empty space 0x2b6..0x2b7 >> > KEY_KBD_LCD_MENU1(0x2b8)..KEY_KBD_LCD_MENU5(0x2bc) >> > Empty space 0x2bd..0x2bf >> > BTN_TRIGGER_HAPPY(0x2c0)..BTN_TRIGGER_HAPPY40(0x2e7) >> > Empty space 0x2e8..0x2ff >> > >> > The modalias shrinks from 2082 to 1550 bytes. >> > >> > A chunk of keys need to be removed to allow the keyboard to be used. >> > This may break some functionality, but the hope is these macro keys are >> > uncommon and don't affect any users. >> > >> > [1] https://github.com/systemd/systemd/issues/22944 >> > [2] https://lore.kernel.org/xen-devel/87o8dw52jc.fsf@vps.thesusis.net/= T/ >> > >> > Cc: Phillip Susi >> > Cc: stable@vger.kernel.org >> > Signed-off-by: Jason Andryuk >> >> Reviewed-by: Mattijs Korpershoek > > Thank you, Mattjis. > > Any other thoughts? Can this patch be applied? That's not up to to decide, Dmitry might pick this up or give you a review whenever he has time. > > Thanks, > Jason