Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp665424rdg; Wed, 11 Oct 2023 01:51:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEajlvKkiqElPpH8fRftbkNE8BTLk3fotXp9Y8BZq614ZqfTRb+QjLaRjXEYxp9UwVuu57j X-Received: by 2002:a05:6a00:218a:b0:693:3e7d:cb4c with SMTP id h10-20020a056a00218a00b006933e7dcb4cmr18911023pfi.16.1697014270135; Wed, 11 Oct 2023 01:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697014270; cv=none; d=google.com; s=arc-20160816; b=VsJO+/trfi+jE3Ydb4N6z6IjRcRTSBFggOimDsNKn29ib2evZDOvfg+4pYUNOoPtBL YyadDfjVYBDVwb34rPMxcIYuUcUNPPI8E0A5o6dINmDGy5m1t8ThCrl3UnJJn3RwBpXB DWcdSih7mtHvKJpeu2eg+38XFouNqny6q5ZIrtruDioqnfQGArlzQY9utQTBNBmVElHh NBbNUSLmfbsccJw4dWZlgwEIoqTh3p+yxU5KNhPWPkogj6l0AZ4DXJaA3dq6RaYZX9ov y6q65bUutgOK065/kYOoV9ULH8UhMiLlWgeiJiQlp59z52Ag1OvrYLmZ9z75NIse8rhQ 3zkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=v7p+gT1BFGsm9JpR0WAEA6fS7XL44+MjD9PCU+IXIk8=; fh=nZduSoWOBNOa8Dro5lXSk1BwCg/TgrVEiVgFvfAot0Q=; b=zMk5MGTTCOQqVa7k1dOloEBu6N9s2Bm8DJUUYR6Ioyc7lp0qyUCvSdpK+6HJZpuTY5 sb8y17/PdAO9mtobNJ1i7odatmRAUcHUFr6+QYGNh6G8uFbFAcgacUi2t7jBGPw86XPp arLHyhxSw+qPGeQETn0snoGdmxwLTG2YzkLhWMo6DZNaMdf2JdY2JkNUKGPWv3jQ0vm9 eQtsJA/gkrEcH2jCgMpXpUy12y4KVRHVxu0Z4wSopyORw4ouHqo6kbi5paW48Enay4BQ t/IhTrTWFFHFABWnqdgLeCzBcTaCrBNUjnHd94f0zwZDVccQ7SJjBaqbTcwt1IsOl9p5 E4lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OPQWE13c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y14-20020a056a00190e00b006910a45a23bsi12019039pfi.366.2023.10.11.01.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OPQWE13c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8B0118087277; Wed, 11 Oct 2023 01:50:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbjJKIud (ORCPT + 99 others); Wed, 11 Oct 2023 04:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbjJKIub (ORCPT ); Wed, 11 Oct 2023 04:50:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6163EBA for ; Wed, 11 Oct 2023 01:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697014182; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v7p+gT1BFGsm9JpR0WAEA6fS7XL44+MjD9PCU+IXIk8=; b=OPQWE13cYAc4q01+FGjkBTJIncxSGeYU8UybIpgALbU+zrbVmsC3SVld5YAvHaPjwlJpPW QbO6tJ/5OfJdZy7Ui8jY43iziMMm4trlt1Fcof0/zBi8Ko2XWvOVx5LJaev7VWNlmv4+Jl c9gp9PCgqUqhenB0nfxEGOimkEpdWDQ= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-97-VLGPxEb9NX6WEIz6p75dXA-1; Wed, 11 Oct 2023 04:49:41 -0400 X-MC-Unique: VLGPxEb9NX6WEIz6p75dXA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4065478afd3so43299885e9.0 for ; Wed, 11 Oct 2023 01:49:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697014180; x=1697618980; 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=v7p+gT1BFGsm9JpR0WAEA6fS7XL44+MjD9PCU+IXIk8=; b=cXD2/b7ncXyxFC2O6J3KEY8CtNfE4wbluo+Ff3iI1KMPsrbcQmfKEdmyoSJ1hOpnZo oQl98rxbbP1Lk5Z3MnblffH8J1haAmTwHlsszFh7t0PwM7Hq6KhDUicFflXMlj+mc1tW sYvq3T/AUeCvWoQI/ulCQgS/nEGnBAg2nrpgWCWdjcMY8un4hzw+hmZRRaKI2yHWAViF xkJ6Ka9TRn5ZxsVkspHQ5rQHD5JCBgI4H3ytwAQVA6sxCavkdgdjrnw5ZFGLG9KaxCoX spoGU0Lc987JkDOmXqL8oqwLiboYbdOrQcBDKXNEKoIsvQ2ryAyfaWDEOI4kyIsyBSGg E1CQ== X-Gm-Message-State: AOJu0YyZee6TFqP/Je8pK0sQj4GJKkUkc8QYX7jcW+kTqYH3nJ5DmkCj tM/yqsw2f8csdAN+Dye1uMEp1l45ZuyGeM9J42VmO+fBwA71ygFAOYQ3tEjW4PoVoT8NtIsxsFO Va3WXgHWxzipBNphKQ+/np76q X-Received: by 2002:a05:600c:3b89:b0:406:478e:9e2d with SMTP id n9-20020a05600c3b8900b00406478e9e2dmr17266869wms.26.1697014180237; Wed, 11 Oct 2023 01:49:40 -0700 (PDT) X-Received: by 2002:a05:600c:3b89:b0:406:478e:9e2d with SMTP id n9-20020a05600c3b8900b00406478e9e2dmr17266861wms.26.1697014179892; Wed, 11 Oct 2023 01:49:39 -0700 (PDT) Received: from localhost ([185.124.31.160]) by smtp.gmail.com with ESMTPSA id n16-20020a1c7210000000b00406725f27e1sm16090936wmc.42.2023.10.11.01.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:49:39 -0700 (PDT) From: Javier Martinez Canillas To: Geert Uytterhoeven Cc: Thomas Zimmermann , linux-kernel@vger.kernel.org, Maxime Ripard , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 7/8] drm/ssd13xx: Add support for the SSD132x OLED controller family In-Reply-To: References: <20231009183522.543918-1-javierm@redhat.com> <20231009183522.543918-8-javierm@redhat.com> Date: Wed, 11 Oct 2023 10:49:38 +0200 Message-ID: <87h6mxsfvh.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:50:52 -0700 (PDT) X-Spam-Level: ** Geert Uytterhoeven writes: > Hi Javier, > > On Mon, Oct 9, 2023 at 8:36=E2=80=AFPM Javier Martinez Canillas > wrote: >> The Solomon SSD132x controllers (such as the SSD1322, SSD1325 and SSD132= 7) >> are used by 16 grayscale dot matrix OLED panels, extend the driver to al= so >> support this chip family. >> >> Signed-off-by: Javier Martinez Canillas > > Thanks for your patch! > >> --- a/drivers/gpu/drm/solomon/ssd13xx.c >> +++ b/drivers/gpu/drm/solomon/ssd13xx.c > >> @@ -631,9 +821,12 @@ static int ssd13xx_fb_blit_rect(struct drm_framebuf= fer *fb, >> unsigned int dst_pitch; >> int ret =3D 0; >> >> - /* Align y to display page boundaries */ >> - rect->y1 =3D round_down(rect->y1, SSD130X_PAGE_HEIGHT); >> - rect->y2 =3D min_t(unsigned int, round_up(rect->y2, SSD130X_PAGE= _HEIGHT), ssd13xx->height); >> + if (ssd13xx->device_info->family_id =3D=3D SSD130X_FAMILY) { >> + /* Align y to display page boundaries */ >> + rect->y1 =3D round_down(rect->y1, SSD130X_PAGE_HEIGHT); >> + rect->y2 =3D min_t(unsigned int, round_up(rect->y2, SSD1= 30X_PAGE_HEIGHT), >> + ssd13xx->height); >> + } > > Don't you need to align to page boundaries (2 pixels per page) > on SSD132X? > I guess so, yes. I'll add that to v2 as well. > This should be handled through ssd13xx_funcs instead of a family check. > Agreed. --=20 Best regards, Javier Martinez Canillas Core Platforms Red Hat