Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2624658lqt; Mon, 22 Apr 2024 17:13:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWR7bb1ffzzMqK1FGekitEBDqjN90XHK1mmf0QyxSYGxawfbn6DFwKxWPdiH9kkvjeVkfFE8igzvvaiD//hVaCdbN3tbnw3hVGoA3BUqw== X-Google-Smtp-Source: AGHT+IEsK8M9wNTbjDGj4opnc6nWqilMCSWWZL6iUgth7G/cUGeGva/9jlz+K6APwl2EaO4O47WF X-Received: by 2002:a05:620a:4511:b0:790:6c89:e589 with SMTP id t17-20020a05620a451100b007906c89e589mr8999817qkp.71.1713831205756; Mon, 22 Apr 2024 17:13:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713831205; cv=pass; d=google.com; s=arc-20160816; b=o3C04S6BSZXgd1+J8BH5fzd8XD35wdMkaP5W11jAWIGvqziMvSkBepEQhT+hhxeqjc qa36amb2oqHHoLx68CggrehDkPPbMKcpg5ENWL9CJadfqHj7Uj/akiNCXW/CutunHfFf S4RzkNJ2qDu2MfH59eL9tPSa7jZ10LWSq0b7Zs7lANsMsk5RNjv4DieGngB+14JBeVNu y5bAmbOScCJimEpgLQ1w5IbWG2C2IXXC4bm3APBdQj1EQ/0xlaSSGwH+tEfgbJZniv/c gEevt258LFOt979zKJlJVcNTDmZ/rB26hYkNNxwHL199xtT/VMOaDavKEsLNdVGtX3TV CPBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0fCD0HQd93NIGEF1P3gk6JTDZarJsXYeMVKIeA1GAkY=; fh=1GaSaQuquPG2ITgh7Z9Y80WCd/YRkRn5R5it48lpa+k=; b=hUDtHAPAF9lOshauW+7+2Mlspmtu3PaaJ1YlST6iAHSaYdLo28QOhus5NqCo2T5Ary /iz9EABY7B7+g2pu6KqJeYjYXvNZPuSKHK6m3IghLhMGjnAEm/xyKfZSBgYNSNmHFrOa JXamTWVs60FtPpO+0KoW+LjrPEslJvRa2v1oFfQGfuC+FjQxaHIjL0yRj/6a31q8R0es pIj+Jmcu1oOElfrhLbE1Vv6Rj6oVZ8NbyV1B0C3YXFupWK3WCFTdAMoVW63FM1sBWrZx 3Mq8CwqOo5xVJHLvaTpFjqqBvdEnDgaGKMaCVGW+VDlcJh7+fSDuShkHG+xbO1piUIat EIEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kI8ZsfEZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id xz21-20020a05620a5e1500b0078d6349b8a2si7538178qkn.158.2024.04.22.17.13.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 17:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kI8ZsfEZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BB291C2171E for ; Tue, 23 Apr 2024 00:13:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0342F158212; Mon, 22 Apr 2024 23:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kI8ZsfEZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2706817F38B; Mon, 22 Apr 2024 23:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713830265; cv=none; b=AXvYtyA/LmYzx3dCUG8+hnQjxHE4bGBWyjNQ8mmUROj4ybIrV0ej92DKNABC8jXgfX/2oxFNoA6WFhjzMcHbULjN2gj0+IvilAFxrV6cTh+5oxjO2NK16WKj5CMy5vBpERnamAJX0dZLtfLHIlrV6XYUcnC60LVhnhQt+uoBNA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713830265; c=relaxed/simple; bh=PYllO4P0w1bEO6gQFn/31ZkUIJ2oyI8dlVzxp96YQDA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JuDyahwr42jvg6hI35EVY+2mSQezvIaS/7aUziFyWq3UEW2wpz8LpbQi9cPDlg2HR2YqOL/JL4w9M5n589/FLfxEqAb+zcff9T7WMLBojm5vu+l16CBosPyf4dpqZ5BP65ePjPGFD+kOpP04QL0FWlp+rLDruQNyUbiDGtx3TnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kI8ZsfEZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCB3BC113CC; Mon, 22 Apr 2024 23:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713830265; bh=PYllO4P0w1bEO6gQFn/31ZkUIJ2oyI8dlVzxp96YQDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kI8ZsfEZE0fg7doLG+t1Ex1eCrNEs5E4Ec2X+ZZLoavUygj3N/OjCFbplfflYLE87 L/CVE3F/UQlEDhuprpnrEhMqf3l1ucJByDcpQSE4qr+zzFltfSKFI3FyTy/mtZre7j QVEomNY2v2iy/6MhV96KsF4lqJFdxqt8Ju6no+hRie4k8HuIF3ZPE76CavM0TSiwWy QqTtU1xJpWwAjZ2lWQZ/iofghh4auXWljT6bfjTcXga2APNruQImKXyu8ssiuA5i/V C6o2y5vcQNuTMDNxNn2EtPjXFhx8g16frvmGsVPOiAAXg9yV03QC9ZJQqpSD+JALGY 1tugQqpG1WD9A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Thierry Reding , Jon Hunter , Sasha Levin , thierry.reding@gmail.com, mperttunen@nvidia.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 11/19] gpu: host1x: Do not setup DMA for virtual devices Date: Mon, 22 Apr 2024 19:18:25 -0400 Message-ID: <20240422231845.1607921-11-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240422231845.1607921-1-sashal@kernel.org> References: <20240422231845.1607921-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.87 Content-Transfer-Encoding: 8bit From: Thierry Reding [ Upstream commit 8ab58f6841b19423231c5db3378691ec80c778f8 ] The host1x devices are virtual compound devices and do not perform DMA accesses themselves, so they do not need to be set up for DMA. Ideally we would also not need to set up DMA masks for the virtual devices, but we currently still need those for legacy support on old hardware. Tested-by: Jon Hunter Acked-by: Jon Hunter Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/20240314154943.2487549-1-thierry.reding@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/host1x/bus.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index bdee16a0bb8e2..ba622fb5e4822 100644 --- a/drivers/gpu/host1x/bus.c +++ b/drivers/gpu/host1x/bus.c @@ -368,11 +368,6 @@ static int host1x_device_uevent(struct device *dev, return 0; } -static int host1x_dma_configure(struct device *dev) -{ - return of_dma_configure(dev, dev->of_node, true); -} - static const struct dev_pm_ops host1x_device_pm_ops = { .suspend = pm_generic_suspend, .resume = pm_generic_resume, @@ -386,7 +381,6 @@ struct bus_type host1x_bus_type = { .name = "host1x", .match = host1x_device_match, .uevent = host1x_device_uevent, - .dma_configure = host1x_dma_configure, .pm = &host1x_device_pm_ops, }; @@ -475,8 +469,6 @@ static int host1x_device_add(struct host1x *host1x, device->dev.bus = &host1x_bus_type; device->dev.parent = host1x->dev; - of_dma_configure(&device->dev, host1x->dev->of_node, true); - device->dev.dma_parms = &device->dma_parms; dma_set_max_seg_size(&device->dev, UINT_MAX); -- 2.43.0