Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp263800rdb; Mon, 29 Jan 2024 01:09:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8r5pkDk7UFgjXTj1p7tTCqwCzf+KoJpcJl+bH5CtKQ3O552oOsRO8wM07BGq//rUi+1sP X-Received: by 2002:aa7:c316:0:b0:55f:bca:8505 with SMTP id l22-20020aa7c316000000b0055f0bca8505mr728110edq.19.1706519361122; Mon, 29 Jan 2024 01:09:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706519361; cv=pass; d=google.com; s=arc-20160816; b=Bz7lPkb8eWthR7NUyo06ekoLEc1q5sbVyBBaXdkjD4egPZjVLJ6iw4wH1T4qXligTG kvVyvsnxHHscRoBqXSTxgxtLBOLEbNauRXcHR3WcSNoCJuCJN9YFQQEedzENkVc8tWED n+pcPoniyNjG1/BiUuY5sPp8wnWcvpx5pPNVSQ2kxagmIRE2DaKx96Tvl0QA6cPAseRk k6Z8I2A6OWtkI+a9ZIT64wtIrC4F3w9BpAs87+vdhaKwTq783o907RzlWerlMEp1rX+c fegH3WTzcx1gjxWFG/7/SaJ/iMKc0I7Lj4a8YM8NSqtlQM2p1PU2tlm+zwIIX8M84pfY B8sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FKNct0ef369y3qSzeQg+qI0b0YxjjrqffYElVLEHXKQ=; fh=39eBnpaKWkVmlr5WnNeL5uagBH1qLxuIUkxm4eqSGXc=; b=CtQG2Q8l1UPYVy7IIHeAxeIUuFw9Beajd8fYDu+ePmkbxA5TfiauztJwUqq263IN9G pdAeFnLVAk0dvTNJRGNCmeuAIiSmp/+4BLDDFOMLtx7zd28+pI+CTrDdih5dwyw96yhy DENxkprpLu5yjrEFW8JAokneafnXDylUSZStjCs1OfysCgKZTAze5ba+RMHDzsRjcUR5 SL53eJc6vhxm8FyWz6QVQzDwizRiastEd8+Z/ZtV+R45Pcj/H8WlqbnzrBg/rw0CH7bb sXl+rOA44K1JFahyLwkjQ3MliNP6tRW+DRs9VeNf9nYqfVakZJuUGhUz/DRqrRN7iiCF MRGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=tMLn71OD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-42409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i7-20020a05640242c700b0055f11f5afadsi339528edc.239.2024.01.29.01.09.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 01:09:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=tMLn71OD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-42409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DCADD1F23F0F for ; Mon, 29 Jan 2024 09:09:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A92C54F92; Mon, 29 Jan 2024 09:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="tMLn71OD" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 C3A9E54BEC for ; Mon, 29 Jan 2024 09:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706519352; cv=none; b=RsLb/O467Ht8iE4S327YWRYZ5jJVMAhF+71XttzG7AEOXFqKDc1fF0NUEeoBydRlqeRSgmExYOWAQJij9soHy7wPyDoqK8cuA/K2lOykmi1sTAKMMj8l1bgw2bpqEOksyLQtIX4rmw8j42HxuUW9jvg08d3DFT7TJUkiaCbH+Lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706519352; c=relaxed/simple; bh=3eVGnHQarUvvYEP93Efg52JEWCK+33R/xQvbNmpvJBY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QitWS3qHwMiGjtHYVOBkP7ccjaz4nNVfxIMZOkvxkf7nbg6zs5ncEL4A74xaBACWiycgV6aEmWj9zrjxZGitCn8L9rE393jfP4ITsiP2TSp4YpVVJlqLIN4VMVD3C/FUAzE6y1HpYhG4XxpQRlxhvS7Mzx+48E8yxBepKETVlGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=tMLn71OD; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706519349; bh=3eVGnHQarUvvYEP93Efg52JEWCK+33R/xQvbNmpvJBY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tMLn71ODKx6DF+vSa8/KkoIvMDRiO6FIg+NwQjJDxf4wBpUl+EchCZYCM4DeLemAq xZ+yncKFM0IqFGN43pSSOGBQpz0DDzQJYdVwnv93RSgQISVR+cpvh/wLapwQ6zXDde 8DjxsK1mdT9CztY4apxWZugMfum2F1dPagdplBPYyPb6Ir1DdtDfsWIO9tlIuDlr99 B6zywy/V/MhPGItatLHPzi5/lbF86zr/PW4fuobLrebAv9HO0c8HZ+SgoLnOJn5LEf DV+l5hZ7+0eS05Hxr3bNuELW043fqkei8ypbnzmr9R+b/mz4s41C8LO/iLyvdubSmN O9mubjbsLTzHw== Received: from [100.109.49.129] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 97BA437814A4; Mon, 29 Jan 2024 09:09:08 +0000 (UTC) Message-ID: <9eea9580-744a-4b04-97a1-11e86565b895@collabora.com> Date: Mon, 29 Jan 2024 12:09:05 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND] drm/virtio: set segment size for virtio_gpu device Content-Language: en-US To: Sebastian Ott , dri-devel@lists.freedesktop.org, virtualization@lists.linux.dev, linux-kernel@vger.kernel.org Cc: David Airlie , Gerd Hoffmann , Daniel Vetter References: <7258a4cc-da16-5c34-a042-2a23ee396d56@redhat.com> From: Dmitry Osipenko In-Reply-To: <7258a4cc-da16-5c34-a042-2a23ee396d56@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 1/23/24 21:14, Sebastian Ott wrote: > drm/virtio: set segment size for virtio_gpu device > > Set the segment size of the virtio_gpu device to the value > used by the drm helpers when allocating sg lists to fix the > following complaint from DMA_API debug code: > DMA-API: virtio-pci 0000:07:00.0: mapping sg segment longer than device > claims to support [len=262144] [max=65536] > > Signed-off-by: Sebastian Ott > --- >   drivers/gpu/drm/virtio/virtgpu_drv.c | 1 + >   1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c > b/drivers/gpu/drm/virtio/virtgpu_drv.c > index 4334c7608408..74b2cb3295af 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_drv.c > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.c > @@ -94,6 +94,7 @@ static int virtio_gpu_probe(struct virtio_device *vdev) >               goto err_free; >       } > > +    dma_set_max_seg_size(dev->dev, dma_max_mapping_size(dev->dev) ? : > UINT_MAX); >       ret = virtio_gpu_init(vdev, dev); >       if (ret) >           goto err_free; Added stable tag and applied to misc-fixes. Please use `git send-email` next time. Thanks -- Best regards, Dmitry