Message ID | 1600683624-5863-1-git-send-email-clabbe@baylibre.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=F5P7=C6=vger.kernel.org=linux-media-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A875E6CA for <patchwork-linux-media@patchwork.kernel.org>; Mon, 21 Sep 2020 10:20:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E5DA21D7A for <patchwork-linux-media@patchwork.kernel.org>; Mon, 21 Sep 2020 10:20:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="Ge816K6x" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbgIUKUe (ORCPT <rfc822;patchwork-linux-media@patchwork.kernel.org>); Mon, 21 Sep 2020 06:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgIUKUe (ORCPT <rfc822;linux-media@vger.kernel.org>); Mon, 21 Sep 2020 06:20:34 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBFA1C061755 for <linux-media@vger.kernel.org>; Mon, 21 Sep 2020 03:20:32 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id w5so12116307wrp.8 for <linux-media@vger.kernel.org>; Mon, 21 Sep 2020 03:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=P114LNEQNNS9Xncao7G55/+Y79iVyKDqvr9Jcf50RWg=; b=Ge816K6xH8yGoe0zeqBNbGeD8dUcZqlLPClrIpQEx/9buJqnSewe3lxgGeilETM7T1 LLGeTdIXCcaEtNz9XuDZxgvB3OMVGocgQMMJaAiHvIur9lRuRHexce5FQzsYBhfboKwd zmOHKRdmXIqaIUw0DfFtTmLkezmlmFsv5ta4pK9rqFzjcFwm98A2B5wJLPt+Sfg+KDsY AOmthdyfN4R0lGZEvG//XlXFhzoleYoFEn1EAdk9W3zyoY5JzhUVMZAPwDKpImpOnaA8 xyeyjIOMWwEd9bhettsZ9az/xfBRdPNDMysyGV2sz+0V4A8imGy07FoQXthnXOJmkcJD RA+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=P114LNEQNNS9Xncao7G55/+Y79iVyKDqvr9Jcf50RWg=; b=UiSIWM9wIhRKbUiQyy4S2EP/UGcgAo9MQJdT/P+a36NlpW+JiBtbk5h3Auyud/hLwk +cJYbq9nl9W/f5gKujOKUiYiAJ1FiSLFsAgTtEWgXcyMXs5EmX35M1aKmX4gbHhkWieo +Ix+NG3d3PhkZSFCNo1R9JhnZ34gLywU00wSMdE5So4NUhFWZcqiN63cW+0EJslsLuEU IBbi7ILlBQs4zN1QM6wDAI2odWDwO+NVQ6btsXj6bbLMbSrZynmfMNeQt4hTFzKQIobl 0JOL5Z/SeXT0wFma0LL5scnRJo395WnvjC67Nk25+lI0DjofpQF5G0kS1sDwJKdW/vkf xkbw== X-Gm-Message-State: AOAM531OUifEcu6G/WHpKy6Fv9XCfZY+QUTwVg9VhbbvLuwTRwwnjT8U r6CfqQkfCHDvnxMSwnSk0BeH1VqsP79Djg== X-Google-Smtp-Source: ABdhPJx3U+75iHspfhNxbPS5+Qo2TcAZCebOPLwZNmi52sDHPeD7v6uBea1FXv9SOWNpYLwsJ7mUDw== X-Received: by 2002:a5d:568d:: with SMTP id f13mr50607391wrv.303.1600683631278; Mon, 21 Sep 2020 03:20:31 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id l17sm18804629wme.11.2020.09.21.03.20.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2020 03:20:30 -0700 (PDT) From: Corentin Labbe <clabbe@baylibre.com> To: gregkh@linuxfoundation.org, laurent.pinchart@skynet.be, mchehab@kernel.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Corentin Labbe <clabbe@baylibre.com> Subject: [PATCH RFT/RFC 00/49] staging: media: bring back zoran driver Date: Mon, 21 Sep 2020 10:19:35 +0000 Message-Id: <1600683624-5863-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Series |
staging: media: bring back zoran driver
|
expand
|
> + fh->buffers.buffer[i].v4l.fbuffer = mem; > + fh->buffers.buffer[i].v4l.fbuffer_phys = virt_to_phys(mem); > + fh->buffers.buffer[i].v4l.fbuffer_bus = virt_to_bus(mem); > + for (off = 0; off < fh->buffers.buffer_size; > + off += PAGE_SIZE) > + SetPageReserved(virt_to_page(mem + off)); This messing with SetPageReserved needs to go away before we bring back the driver, even for staging.
On Tue, Sep 22, 2020 at 06:16:01AM +0100, Christoph Hellwig wrote: > > + fh->buffers.buffer[i].v4l.fbuffer = mem; > > + fh->buffers.buffer[i].v4l.fbuffer_phys = virt_to_phys(mem); > > + fh->buffers.buffer[i].v4l.fbuffer_bus = virt_to_bus(mem); > > + for (off = 0; off < fh->buffers.buffer_size; > > + off += PAGE_SIZE) > > + SetPageReserved(virt_to_page(mem + off)); > > This messing with SetPageReserved needs to go away before we bring > back the driver, even for staging. The whole old buffer management (with some virt_to_phys, virt_to_bus, SetPageReserved, etc...) is removed in "zoran: convert to vb2". Regards