Received: by 10.213.65.16 with SMTP id m16csp86551imf; Sun, 11 Mar 2018 17:01:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELtNymy0+ofbQe9IXMH9Yp3khCBaeT/qcrYH/8gR7vbK1AENjcgcXRTWWAGYaG5YPRt4BAFR X-Received: by 10.98.19.21 with SMTP id b21mr6004266pfj.236.1520812917119; Sun, 11 Mar 2018 17:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520812917; cv=none; d=google.com; s=arc-20160816; b=eMHnA9CSp0iRsK1ZHkF8Ew/jjwdo8bA3q6lQw9hJrXDLgDzNsBodPsMIQwrR1odnf/ h8FvdGYo++BQpPDIi99mhkiiU6wAeHZUOOoHF8gTrkyoA4YMrNbWKi6FOlvKpjdz2CXm HXXaN5GO7VDDHKB0DYwSJN7YvSb/QzqpQ/MNqCmdLYEMcBPd8FL1Nfk3TEXSqo/3l/Mz cqQPFlOy+co0VB2bFQaRuAQqqwSZhidgwnRida44U2gX/atepxzvBF8Xkd6VRf+taegu sboma+QtdelJunxzjz31lAWR9thGZ+poU+UN6L8alE8lM08aSvGGVisPu0AkFY/PBbHF 9VAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=6qex7OALTRWsA17LT9OVd4jfpirWJ+6LRa9xIYP+sGk=; b=KR1ICM6KYhpas457SKTojumavesBen6IRE/aHv7jm6Dv+Uk+AdrYDbIOWAAectd9iO dOUZ+b/9JKA1cln9GAn7WQKv4Q53tR2nL3xyIApWmT6vfBPg3OLy0ZRmr6j5+au5PBgK Qy+Cqkx32azoza62ZC4At6CstAUxYyXYwzq5M1faVXQZxvFf3GHjpXuTKvgk8QVTBm6m aYv26k0pv5DlC+oEAeYub6gFRydo90HZ+dPsjeHUg0YJlI2OKVb7rGYsiVNumqSA1clJ ablVOJUBsD0u6dyf8bsQ8JnvPYBtnMZJd/ZW92zBM32FvQxisxv9S46YYR9Fx+6sI9JI K8jA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay4-v6si4981550plb.443.2018.03.11.17.01.42; Sun, 11 Mar 2018 17:01:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932507AbeCLAAb (ORCPT + 99 others); Sun, 11 Mar 2018 20:00:31 -0400 Received: from claranet-outbound-smtp06.uk.clara.net ([195.8.89.39]:36725 "EHLO claranet-outbound-smtp06.uk.clara.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932290AbeCLAA3 (ORCPT ); Sun, 11 Mar 2018 20:00:29 -0400 X-Greylist: delayed 2141 seconds by postgrey-1.27 at vger.kernel.org; Sun, 11 Mar 2018 20:00:29 EDT Received: from host86-141-215-231.range86-141.btcentralplus.com ([86.141.215.231]:18556 helo=spike.private.network) by relay06.mail.eu.clara.net (relay.clara.net [81.171.239.36]:1025) with esmtpa (authdaemon_login:iarmst) id 1evAKW-0002f3-MA (return-path ); Sun, 11 Mar 2018 23:24:41 +0000 Date: Sun, 11 Mar 2018 23:24:38 +0000 From: Ian Armstrong To: "Luis R. Rodriguez" Cc: "French, Nicholas A." , Andy Lutomirski , "hans.verkuil@cisco.com" , "linux-kernel@vger.kernel.org" , "linux-media@vger.kernel.org" Subject: Re: ivtv: use arch_phys_wc_add() and require PAT disabled Message-ID: <20180311232438.2b204c51@spike.private.network> In-Reply-To: References: <20180301171936.GU14069@wotan.suse.de> <20180307190205.GA14069@wotan.suse.de> <20180308040601.GQ14069@wotan.suse.de> <20180308041411.GR14069@wotan.suse.de> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 10 Mar 2018 16:57:41 +0000 "French, Nicholas A." wrote: > > > No what if the framebuffer driver is just requested as a > > > secondary step after firmware loading? > > > > Its a possibility. The decoder firmware gets loaded at the > > beginning of the decoder memory range and we know its length, so > > its possible to ioremap_nocache enough room for the firmware only > > on init and then ioremap the remaining non-firmware decoder memory > > areas appropriately after the firmware load succeeds... > > I looked in more detail, and this would be "hard" due to the way the > rest of the decoder offsets are determined by either making firmware > calls or scanning the decoder memory range for magic bytes and other > mess. The buffers used for yuv output are fixed. They are located both before and after the framebuffer. Their offset is fixed at 'base_addr + IVTV_DECODER_OFFSET + yuv_offset[]'. The yuv offsets can be found in 'ivtv-yuv.c'. The buffers are 622080 bytes in length. The range would be from 'base_addr + 0x01000000 + 0x00029000' to 'base_addr + 0x01000000 + 0x00748200 + 0x97dff'. This is larger than required, but will catch the framebuffer and should not cause any problems. If you wanted to render direct to the yuv buffers, you would probably want this region included anyway (not that the current driver supports that). -- Ian