Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2580429lqz; Wed, 3 Apr 2024 02:20:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWO5L+fIxo8SnJeP1JD1ftr2YB8vLHvvnkD0qcG39nqR/GcqBLjZw7sUips+f4PiqpytZz/4LB4HpccL6E/W7jyg1oMVOdAxUk0uv4gjg== X-Google-Smtp-Source: AGHT+IGDyeoz19r2Wlt/vq6Nfe6KP4eCATIXD+/WC0+WKXjgs2vEpYkJHGbBNbo5qWOGb5zgswqT X-Received: by 2002:a05:6830:1c3:b0:6e6:fb65:db35 with SMTP id r3-20020a05683001c300b006e6fb65db35mr14965906ota.23.1712136044044; Wed, 03 Apr 2024 02:20:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712136044; cv=pass; d=google.com; s=arc-20160816; b=eL6Rr1Rp/RnnJ6UT4/f0Pzf+QQlTbPM6O3lzTsKESZ5hkyDxcN26bif3ecIavmXtya MRABvvrPVq9HkZPD8tIHyhSQklslErRbArB5XSEaY9tdOYoSzTass90ELmy6tg4MIbbP iHGG7uyFxCu4OD8Gsx5yWWfup/2QOEqTKJ+ULYy4wJWJ6YypkVkjXp5Jh9OljFHJ3hod RAwqDWjEYgMhBb+GoZGgySj5uU8DFEprVU3ssA8pnRLFRcVDLnA1nYlt33UfWr+Zh7RI 5aYhEjygBHVkqinnEnHam0xU9VfuD3rJCwNrLsJUldImoGJqPACII9f0vc8Gtk/VopnD i5KQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=cpjQAPGX7DRYeObxhpkzDQOHk6DN4GVEcESJCG1mUPs=; fh=+j9/k/TfehZUnZ1IttkdODDpcQWTbJNeimobk2HOw/8=; b=eVMlkpwx5qUGiv1LiPiRxrValUji6x75+SfJiht4MQhNHAwNI3L+cR9K8cEinqfke2 ayvv3ddyVfrB/4USuhtxwm3igVLBqc7qO1HD5LYs+BSzJMrvziJZTCo0t3XYfLWsKDAc vbLWjdtS60h/MMIcXknlVRLy2+ooXxraU+TVQS1Ekj1hYlaQV5hZb2ZB7LsC3by8KN6P 3tPTeYhZccIpDsZdNH60wa6pnQ9gSsnaOZg2GxUYJV6kXIgo2leY/noqZO8fiz8JBDAR vR4pgGYDPDpAfuLfUZClRBkb+PIlmyaFTFihUoXE3shaq9vBm/dcjTLReMA76znmfw39 ROcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jugfpVLI; 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-129398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l134-20020a633e8c000000b005ee3cfc190asi12714840pga.159.2024.04.03.02.20.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 02:20:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jugfpVLI; 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-129398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129398-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A21328D28E for ; Wed, 3 Apr 2024 09:11:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 576CB73186; Wed, 3 Apr 2024 09:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jugfpVLI" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 1350770CB4 for ; Wed, 3 Apr 2024 09:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712135486; cv=none; b=tc3MWqcgiBTq0p2LufWkwr+R022RU9nZ05FQaqcPpjAubdWDGrj2Va6Ffassf2hqS1/8TMjAWsqi7Fs8DC0/uHDBvVM+F+gGGsmng/6JmbBcc1M6/v9njb2Hq2aBF47vrBpebeswaYvFCOUd19S6IvlTeRdsPiqx1CiuyHs6HAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712135486; c=relaxed/simple; bh=fe4UITYmaUib3AO2xJ32pxkfxq57Nt/QUsCaA65IoaY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=txrMlHrvb0zy66iNZlhDd+nH3l/7sJs8Ul2mKIjwQmGlCkkh5qdP1l2FUKuE6p0gL0C4NvqCKo9AY68EY94bN+EES1ZP+DLrBYL+9DL8htx71NwbbeHvRoqhiEJQ7bCm1pZ0mQJ5D68IYnm/AcqSUpEALsvlQORdz34QZDSNyow= 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=jugfpVLI; arc=none smtp.client-ip=209.85.215.179 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-pg1-f179.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso4625098a12.3 for ; Wed, 03 Apr 2024 02:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712135483; x=1712740283; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cpjQAPGX7DRYeObxhpkzDQOHk6DN4GVEcESJCG1mUPs=; b=jugfpVLIJ3UMAjieRXzFBXD6dhvelR3wCISNlluiWcKwuRBV53mLHgitwiUer4mGET CtO4GmsmEXfHYPlYjYlI4Nz3R43coL/8s7pn9O+Zx+g+KhmjjPJC1ReLuR0qvWcYzZZs V3DYVucGnV0/a9PqYSNkU+XwNtu89mmvqtMOKt3BWV+SCvi9hJDPYnJsJtzi0idRv5Ma 0fZ/RWHBqQ8mCVOvMwIWtLAb/S6YIKh5Op9jwMci5/2qpjBC5Voga1LvGjDNujkSBILx szFRRtBbaG2ewU7swQ9rURBlM608yRBmbsiJSIxfLYkxGZB39Qjys1SsOgnPQu5HEY+i ALtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712135483; x=1712740283; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cpjQAPGX7DRYeObxhpkzDQOHk6DN4GVEcESJCG1mUPs=; b=SEcOibKZGKT8hb+GJ++uuePuhwjdFIeZkL2ZwI6JlyPDLj84HwEUiOlfSG6p3xA7fP YKgdV+gCRZc4P4q1Ra/+NjyNUvIXF4jRVNHkkiRL7+7pRbfIkaNzhd9Hsn5qeswOJ0Rj XFgTBHI0YgksDWmJp6L7MRgKyN3wq2UJRzC6PnnI4/Wclf/W+su/ezGlcbkkpkj9O/6T r4mciGAdTZCNzdRiVUBhtJvt8Gc6t8pjz+3IBHnu74d3GPsDgS7PXn52WkIoddHQw36C 8WfcIETVqt2/6PpBj70BHvd/LXfpHIyY1jvO38M1QYUBEi1lTVzHGLBRRn1ChbGi1Kca IDxA== X-Forwarded-Encrypted: i=1; AJvYcCVaAtxE6Hhm5ReOT3OcaYlfgIEPnwQoD/2xfLvlBAUDEDrfyd8Alw6w2wLjcaT44QvXNDgSaQDa88dp4o30jMZyE+H3UMr8D5dh+B1c X-Gm-Message-State: AOJu0YxAg95Uwyoml6pZSj8wVP805gMu9vlayV0yzhhzmSheoZGjMIRP CPp0RO9xgYZxHZBVZ3EH8Cdf7CA5M26T1EH6hIOlPMEkFgZEMN6U/Qqieb+nzPLlwhU8o/4SGOY keW6KaQ== X-Received: by 2002:a05:6a21:7898:b0:1a1:6803:69a3 with SMTP id bf24-20020a056a21789800b001a1680369a3mr17535809pzc.0.1712135483394; Wed, 03 Apr 2024 02:11:23 -0700 (PDT) Received: from [127.0.1.1] ([112.65.12.66]) by smtp.gmail.com with ESMTPSA id lo14-20020a170903434e00b001e0aded0ca7sm12688087plb.239.2024.04.03.02.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 02:11:22 -0700 (PDT) From: Jun Nie Date: Wed, 03 Apr 2024 17:10:58 +0800 Subject: [PATCH v3 2/6] drm/msm/dsi: set video mode widebus enable bit when widebus is enabled Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240403-msm-drm-dsc-dsi-video-upstream-v1-2-db5036443545@linaro.org> References: <20240403-msm-drm-dsc-dsi-video-upstream-v1-0-db5036443545@linaro.org> In-Reply-To: <20240403-msm-drm-dsc-dsi-video-upstream-v1-0-db5036443545@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Jessica Zhang , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jun Nie , Jonathan Marek X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712135460; l=1740; i=jun.nie@linaro.org; s=20240403; h=from:subject:message-id; bh=OZSNyzuYoscDY4/FYsSXzvtJ+R2/AlPvVZDPzdhQNoA=; b=JV2mcwgTSj/9QP/9nbeMkSLbKZiuDUzrcHQTKV/HDaoeIOw35XNohHWH854JH04Qap8uPz1qe a1wuJWYSr8AD07LuWLw9ySSkW0JSmM3hPE4pifrLGC76X4rSGz0MANz X-Developer-Key: i=jun.nie@linaro.org; a=ed25519; pk=MNiBt/faLPvo+iJoP1hodyY2x6ozVXL8QMptmsKg3cc= From: Jonathan Marek The value returned by msm_dsi_wide_bus_enabled() doesn't match what the driver is doing in video mode. Fix that by actually enabling widebus for video mode. Fixes: efcbd6f9cdeb ("drm/msm/dsi: Enable widebus for DSI") Signed-off-by: Jonathan Marek Signed-off-by: Jun Nie --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 1 + drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi.xml.h b/drivers/gpu/drm/msm/dsi/dsi.xml.h index 2a7d980e12c3..f0b3cdc020a1 100644 --- a/drivers/gpu/drm/msm/dsi/dsi.xml.h +++ b/drivers/gpu/drm/msm/dsi/dsi.xml.h @@ -231,6 +231,7 @@ static inline uint32_t DSI_VID_CFG0_TRAFFIC_MODE(enum dsi_traffic_mode val) #define DSI_VID_CFG0_HSA_POWER_STOP 0x00010000 #define DSI_VID_CFG0_HBP_POWER_STOP 0x00100000 #define DSI_VID_CFG0_HFP_POWER_STOP 0x01000000 +#define DSI_VID_CFG0_DATABUS_WIDEN 0x02000000 #define DSI_VID_CFG0_PULSE_MODE_HSA_HE 0x10000000 #define REG_DSI_VID_CFG1 0x0000001c diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 9d86a6aca6f2..2a0422cad6de 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -754,6 +754,8 @@ static void dsi_ctrl_enable(struct msm_dsi_host *msm_host, data |= DSI_VID_CFG0_TRAFFIC_MODE(dsi_get_traffic_mode(flags)); data |= DSI_VID_CFG0_DST_FORMAT(dsi_get_vid_fmt(mipi_fmt)); data |= DSI_VID_CFG0_VIRT_CHANNEL(msm_host->channel); + if (msm_dsi_host_is_wide_bus_enabled(&msm_host->base)) + data |= DSI_VID_CFG0_DATABUS_WIDEN; dsi_write(msm_host, REG_DSI_VID_CFG0, data); /* Do not swap RGB colors */ -- 2.34.1