Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1147857lqm; Thu, 2 May 2024 06:43:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXW7tsgealDlU2MOKteWIu209ozepeHa3eCMQJ2umwyfWN/GCRgDERRdOaczy+Fe1NhaeUz18CSOeFc1/z/XFoKJbD7wLHUDIBbdTjX3g== X-Google-Smtp-Source: AGHT+IHvqioYfie/wrBcAFwIsNZTX/s/NGEJbB8IFHdejZrZYNLEH8ed57DUqD1dYksS0JADxGcP X-Received: by 2002:a17:902:64c2:b0:1eb:632d:f60e with SMTP id y2-20020a17090264c200b001eb632df60emr5461566pli.39.1714657417422; Thu, 02 May 2024 06:43:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714657417; cv=pass; d=google.com; s=arc-20160816; b=hTbtGmEgPWLwrR7Y2oU75YQxOM5Y+mHOiZhqXyzUySrPrCbSMUlsP/VVEL+KJlRpnV QVsRF3IxRlUmaCyGCWnvrzHyYMjV0TtrneXSxfSOeOkEnyxX5tB6npb4UtlO9G+cATL1 w90qRfq130MKQpBAoHVfVcs3qfB0yaAv+oVVvGf1lDckL4t9TqWfI5jqdXhgXfvNGMNk qooqdXTOHq8FEfrCQU7+JDa1LyjFy+SerUT3niPNPExlPbYbnlc7aMjwpYK7NfShVKki wZANcek09gKY4Tiork56x8q5l43QOMuMjjFHaxUqyoebEGnB1SI42vbl5T+HcK7IXJ2A gI3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=iSQ9jjwtyIhReugDAg/DErQbocu2WPTjK2mXdU1pXf0=; fh=T3ILT2JwSzGh18m319hYfRUyKSI4nenjUA/ye0RdEVg=; b=IiC/bWRVrZjR+pcgQtjzIDEIQMkPOgTsw1ueN4xxBhiLBeqdJNZ/gtEH2LIwjRVtpN W3zoRTMAj0GDiaVvXhUVk0sKHKqnzX44nGJvkwXfOT2e7LhP3LUsZa1p2eVLFQ03bwJG 61bbS9ca9siEGogf1IhwfqgTgCzNusSDSmmLaOpU3TJyRKrBVEBEJk773F7OMwIh+OXI TL++0P5yki0c/bPyd0PWEsXc0CEV9ab7gtuiSe1yfQgtfqQh7uk+gkY3hmRz8NKKhGp0 ud6M1J1G8FFpApB4N79SStopGVGuxpDR+C1FW14jWszgp5itfrYKOyTe40dnAsoMk0ES tNyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LPUfs/ob"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-166517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w22-20020a1709026f1600b001ec58078036si941658plk.653.2024.05.02.06.43.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 06:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LPUfs/ob"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-166517-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6B4A0B22650 for ; Thu, 2 May 2024 13:42:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40FDD13C662; Thu, 2 May 2024 13:42:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LPUfs/ob" Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C26B041C60 for ; Thu, 2 May 2024 13:42:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714657323; cv=none; b=EzqMJCJOrK5sGvQQdiljjo4brFUFg2HaF7KfEKcBo8JTgu4+4XaPFxDmzS8haB7fBLgWpwqvhf4C6NDJ8y+e+JhTVptPgmRIxmXAjQh+HRq3JnJQ2FzSPqlwoGiHZ8bS7AQUWf46ZHqpAGYZZ8kLbpCvf9eYdg1w6EyJLMfMiGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714657323; c=relaxed/simple; bh=6mNAUPwTXtGNfeXAY0CnFqxe0yDpZcMGNhXVEGvyMYQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Zcdis8qiZMynJmn7cy1FFjYZmO1QV68DrwWwq8WVums4K/xrrF6eCVbR24+WeoekMpLTi5vwUzihYF9cOffyhht1VdJq/NK92HWYshoOzq6qn1Pjib0LycZCC9UBJDgOMWG11swiKArivlKyp6EBZq9ZCS7XzCVpG+0Hlyir1AA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LPUfs/ob; arc=none smtp.client-ip=209.85.219.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-d9b9adaf291so8420392276.1 for ; Thu, 02 May 2024 06:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714657321; x=1715262121; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=iSQ9jjwtyIhReugDAg/DErQbocu2WPTjK2mXdU1pXf0=; b=LPUfs/obVIC0p8qEqmAhAXHQi7/2rFcI59Ndda4DexG8R2eQaT5Pgq33Tax6FeGD9U ZM2r/96Zj3/oTl1oCJnjNig38JIfWxsBzplATGe6YNLdGagZIxXqaty2ZlRo4t4TQ9Ei rPVCnOZgrw8Yay74sSLWC7bgZ/7+06HXorTUe2M3Dx4SJvh6r3mHDwCCI2M+KybOnPQV q7brmXKnCX2xyOc1HdduzDkaTuIoUmrJ54tTadoaoH4qi4CvdR+umRHvnxt48LdKl0jf 9q8uFvJ+sQenVIHbsiLUDxN3lw1XSMiS8CRXxmrbOe5f2vEQAXI0FV0UAp4SVkxZvzl+ gQUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714657321; x=1715262121; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iSQ9jjwtyIhReugDAg/DErQbocu2WPTjK2mXdU1pXf0=; b=A+8pP0DxBUigss3S6RAqnc/21FocDcxXLrkJ4rtJdPTt7Axha7ATbdUib3n0j4s+qL OB2jY8pOJBBKJPs5AgfZ2dP7CqmJ1O546dfG1ZyOo85yvuFdVKxrVEmMfnjGCPkJr4SL /Ph1EvF4e47eTa/NUY1lRId6f0r1+zaSQn8yaSWXQFbdvrlIWRr7vd6n+jVX42O6boDF SJNafCjqiFnt0GQBuXzhXv/Zx1tDEkK29BjjRDEjtE0l1rgMEquL97mp5rr3L+ev2IBE xNYnXaLbcLpLGQuMyoKRPRqn5vN3y6QEmHAahsFrnTjlTNyFiguCDvuwdmjJtbDgQqsj iv8w== X-Forwarded-Encrypted: i=1; AJvYcCW42XaNnbHHhglcKdYxU85nZoUJZ77DBsxVIB9JkN9jrhL63luCKNhtLbwffRxOhQHdPfr9zSkMQ0hYlTbCcccsDvgLWG1yQLGOL/gs X-Gm-Message-State: AOJu0Yw0nVpDxMduDjWyEWujya5JxdkdIwOlioLugv+bsx55GBt8Bk2J t44CaUMThXSZx78VySxoUsfasgio+51UKs2LrStKHAeZB6+PnHqw9t5gjy7R4S6UFBWhMXte8hY OktCstork9s5vMDd50gsjMtQ7dHBsVdxtQX265A== X-Received: by 2002:a25:dc09:0:b0:de6:12ce:abce with SMTP id y9-20020a25dc09000000b00de612ceabcemr5746180ybe.43.1714657320644; Thu, 02 May 2024 06:42:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501154251.3302887-1-dianders@chromium.org> <20240501084109.v3.7.Ib5030ab5cd41b4e08b1958bd7e51571725723008@changeid> In-Reply-To: <20240501084109.v3.7.Ib5030ab5cd41b4e08b1958bd7e51571725723008@changeid> From: Linus Walleij Date: Thu, 2 May 2024 15:41:49 +0200 Message-ID: Subject: Re: [PATCH v3 7/9] drm/panel: boe-tv101wum-nl6: Don't use a table for initting panels To: Douglas Anderson Cc: dri-devel@lists.freedesktop.org, Jani Nikula , Dmitry Baryshkov , Cong Yang , Hsin-Yi Wang , Brian Norris , Sam Ravnborg , Neil Armstrong , Javier Martinez Canillas , Joel Selvaraj , lvzhaoxiong@huaqin.corp-partner.google.com, Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 1, 2024 at 5:43=E2=80=AFPM Douglas Anderson wrote: > Consensus on the mailing lists is that panels shouldn't use a table of > init commands but should instead use init functions. With the recently > introduced mipi_dsi_dcs_write_seq_multi() this is not only clean/easy > but also saves space. Measuring before/after this change: > > $ scripts/bloat-o-meter \ > .../before/panel-boe-tv101wum-nl6.ko \ > .../after/panel-boe-tv101wum-nl6.ko > add/remove: 14/8 grow/shrink: 0/1 up/down: 27062/-31433 (-4371) > Function old new delta > inx_hj110iz_init - 7040 +7040 > boe_tv110c9m_init - 6440 +6440 > boe_init - 5916 +5916 > starry_qfh032011_53g_init - 1944 +1944 > starry_himax83102_j02_init - 1228 +1228 > inx_hj110iz_init.d - 1040 +1040 > boe_tv110c9m_init.d - 982 +982 > auo_b101uan08_3_init - 944 +944 > boe_init.d - 580 +580 > starry_himax83102_j02_init.d - 512 +512 > starry_qfh032011_53g_init.d - 180 +180 > auo_kd101n80_45na_init - 172 +172 > auo_b101uan08_3_init.d - 82 +82 > auo_kd101n80_45na_init.d - 2 +2 > auo_kd101n80_45na_init_cmd 144 - -144 > boe_panel_prepare 592 440 -152 > auo_b101uan08_3_init_cmd 1056 - -1056 > starry_himax83102_j02_init_cmd 1392 - -1392 > starry_qfh032011_53g_init_cmd 2256 - -2256 > .compoundliteral 3393 - -3393 > boe_init_cmd 7008 - -7008 > boe_tv110c9m_init_cmd 7656 - -7656 > inx_hj110iz_init_cmd 8376 - -8376 > Total: Before=3D37297, After=3D32926, chg -11.72% > > Let's do the conversion. > > Since we're touching all the tables, let's also convert hex numbers to > lower case as per kernel conventions. > > Signed-off-by: Douglas Anderson Wow that's a *VERY* nice patch. Reviewed-by: Linus Walleij The metrics surprisingly reports more compact object code, I wasn't expecting this, but it's nice. Yours, Linus Walleij