Received: by 10.213.65.16 with SMTP id m16csp151690imf; Sun, 11 Mar 2018 21:05:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELvvIqOknSQJfMDpn1ZFc1j9UTwLqS+tjcXrL+Mqc3LsvAxjpH/bJbUC0lJjlqW8uHzlYcTc X-Received: by 10.101.67.2 with SMTP id j2mr5466356pgq.147.1520827526418; Sun, 11 Mar 2018 21:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520827526; cv=none; d=google.com; s=arc-20160816; b=ic0imFt00V/L4JU4dwcxa/PVDgMR1GdwrC5PYr0Z5XdB1bQYvvXoD/q1SR5mcaVqU3 qD2t3jI5MnqxTCBlfCR1PBG9noQVotWN5GpNEsMUtVFtdAbAOfgCBEERNadzKZix+h+m rGMqqobsn0PNIWnuu5oiiIiP+fD/6Kd1IH+fFgbZ16Zby0u3TMneq9fdi9TiEuM5/oHL XJUcTVYjrtde374ZGYDND+mX2gd/AoBxEjhoKCnBp/s0b93M7phHcXItUFy3m9z7Taht 0lrPbUBP3GlELoYeh9WjkEnay7kyDJvoQDvXqvp8rZiS5lNFlznXMI/7/0/Z0hfLiIPf W2Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=KVRQdXoeGtmETaiuymeswYZSjuyHUsLv/7CK+ioXdUk=; b=feyIFtlDzjkR+uvbHVV4DSzoi5JWNrZWJCAhHj70AwaMjREwvuqv6S6qqPUCQFIwK3 xhUy/OK70F9GkqEuNWjt5wrNSyQf94ieOaSv61C/0e91KEd0Nu4Nx6FLTR63m2zQjZ8O rRQAJFOPpRpx4rLL8MzwWzor+unnUO5+ySHKsJ82it3xW1NAR2UOAlFxkg8dtt+nEq1m tM0m6jwAJq57hePC7gcLeO31DWr4qtfseLIppnnOx4STLpn31BQ+WCPlqctrBJ0oc9zy Sv94PNSxdqSyMRkdeGHbN75xx5TbL2b/W0LUDpFzNbjxv0ZjZ74/7QCbLqxGweJUTF4n VT5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sooners.onmicrosoft.com header.s=selector1-ou-edu header.b=cjjtsooh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ou.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 34-v6si5318148plc.368.2018.03.11.21.05.11; Sun, 11 Mar 2018 21:05:26 -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; dkim=pass header.i=@sooners.onmicrosoft.com header.s=selector1-ou-edu header.b=cjjtsooh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ou.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750927AbeCLEET (ORCPT + 99 others); Mon, 12 Mar 2018 00:04:19 -0400 Received: from mx0b-00272701.pphosted.com ([208.86.201.61]:58586 "EHLO mx0b-00272701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbeCLEEQ (ORCPT ); Mon, 12 Mar 2018 00:04:16 -0400 Received: from pps.filterd (m0107986.ppops.net [127.0.0.1]) by mx0b-00272701.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2C42uKd020879; Sun, 11 Mar 2018 23:04:11 -0500 Received: from nam01-by2-obe.outbound.protection.outlook.com (mail-by2nam01lp0179.outbound.protection.outlook.com [216.32.181.179]) by mx0b-00272701.pphosted.com with ESMTP id 2gmxde318k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 11 Mar 2018 23:04:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sooners.onmicrosoft.com; s=selector1-ou-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KVRQdXoeGtmETaiuymeswYZSjuyHUsLv/7CK+ioXdUk=; b=cjjtsoohUlz06+LwrRzEa+pMr2htTW53FJtVhUmdUWxQoQNIIBjMcjjubabFMdfzpMH57Nro5ukvpZNFcNXFUGHXFq4PtIq/IlYnkzy/XBLOLWwiLUTvCNToNe9DF1WhDef506kU1LplmvMM9hLUJblFL8rAmZ5ban/gSiTPC0o= Received: from tivo.lan (155.94.246.64) by DM5PR03MB3036.namprd03.prod.outlook.com (2603:10b6:3:11e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Mon, 12 Mar 2018 04:04:07 +0000 Date: Sun, 11 Mar 2018 23:04:02 -0500 From: Nick French To: Ian Armstrong Cc: "Luis R. Rodriguez" , 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: <20180312040401.GA4814@tivo.lan> References: <20180301171936.GU14069@wotan.suse.de> <20180307190205.GA14069@wotan.suse.de> <20180308040601.GQ14069@wotan.suse.de> <20180308041411.GR14069@wotan.suse.de> <20180311232438.2b204c51@spike.private.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180311232438.2b204c51@spike.private.network> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [155.94.246.64] X-ClientProxiedBy: MWHPR2201CA0058.namprd22.prod.outlook.com (2603:10b6:301:16::32) To DM5PR03MB3036.namprd03.prod.outlook.com (2603:10b6:3:11e::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38663999-dfa6-4756-c1c6-08d587ce4e4b X-Microsoft-Antispam: UriScan:(275421118447822);BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989060)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7167020)(7153060)(7193020);SRVR:DM5PR03MB3036; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB3036;3:sVAK9TLk+DK+oA7B5zIkFQGY/xzS1+8EasLzr4qF/3z4CI2P+ajPO51FX1EW8nbznMKoDsh+DQwlpVoVH2rqLZ885jr/7qFvMpXF2uvNFu9CNGEUUDbolH0fX8ktNn84usAL9UAiM9KqXdbR7Segg+y+wB53J5Cc5nzj/PW877USvhkbNkdqpHYdp8gAPrfau+rSsM/M2cA+u5wvDUAzYhhmo3rUlI7w+ycpJ77wDYYaPM2SbNFhi0EcU3f4ck+Rr7A61TXKK9YWhXY/T4Z7Dbx6FTYSq6HG6WaJULEK1OI=;25:MfCCUCYXB7P5rQQPLC6RtWahuI/3QGzJ1C+p1aYwuAXIYuT/4YX3sqK+a02u1d0iMVD7LGtmI5w7ulwYspPlMjz1n/MdxZnkQCrhNmHIx6yenPxnfXpK/EFvmQ6WMBvd81IDYqO8etwcCmSW44neatjkWs8QGFKQmyxdl5e+pHZqFjM1Rjtg5zn0a4BM4HxOYTTb8dxS4PnvFnaK1ZLHUseY8GghJygttQZN+KcWgMZLQSv4+988thhBDZB+32h/gJIfhrrpZJKyh0z7mmS7Hm0gvt0CS2zwqnAhSewGG1/Sq9mwCaJPimRgL42wO5c0JRJFvgp8QRHRDs+2s/fZ+Q==;31:Od4A6l3wkn09jXRu6CgSBNXJ2mRlR0Ugujc5vUJS7j0Dj1PuXi6UlLBiXuqht9G05JsG/akG1OLfJJdd8P5UAxS3+svgzsQa7u5pLAXsegM1xdbckra50qiaEe5fce0zNcKMcOj5xQAFJvGg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ispam-Report-Test: UriScan:(179259710895377)(275421118447822); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(6041310)(20161123564045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR03MB3036;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB3036; X-Forefront-PRVS: 06098A2863 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39380400002)(39860400002)(366004)(396003)(189003)(199004)(23726003)(97736004)(16586007)(8936002)(88552002)(786003)(316002)(7696005)(52116002)(81156014)(76176011)(81166006)(4326008)(229853002)(53936002)(66066001)(6246003)(1250700005)(86362001)(36756003)(1076002)(55016002)(93886005)(58126008)(2906002)(54906003)(9686003)(69596002)(8676002)(6116002)(3846002)(25786009)(47776003)(478600001)(33656002)(21086003)(106356001)(5660300001)(386003)(16526019)(305945005)(75432002)(186003)(6506007)(55236004)(105586002)(2950100002)(6916009)(68736007)(50466002)(6666003)(26005)(7736002)(2320200001)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR03MB3036;H:tivo.lan;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: ou.edu does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR03MB3036;23:dXHUZ2yfCT22UMcTm5z6mLmxs2nj+RWA8uql2kGM8?= =?us-ascii?Q?Hbmuqolr5wNl5bHcOztOMA1AmDqLOHujsynCEYkMm65XEzo1i5fKbj0c/0ci?= =?us-ascii?Q?RbQv4Frtwe3mA+TY7+zHS2Wb4x294m0EF70Tg3NQQaWJH0pyqDI7Di+8CeXH?= =?us-ascii?Q?Cxr8hAN+E6OTMaOcVPxRNZSAC8gBnbGA97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A4ccjYOIPaKUZKqImQ=;5:zL3NtdSxXQRhcuP5qHh2Tt2jWGXs7xW58naWfR2fxbjklhwCBH9XGZbr3TGDg0FtyvoUspy5oeYUrS+PTpN5Nxtntevb8WklCoBcZuR3oWnN2UK5bUqfAYg7FUSKbNWtJMlcfK+6luNyWT6xPFbQictDAmPC9DsGEAuk1b7e9FA=;24:vrh7z8w0CAOl3kPWfbTCqPmrOI4Ju8jMSK4T8cbHgNzxrQa+by27LFxpEohbsco4Uv7BHBBo0I4Y01eSo9Rs1Dg2IBI96SJu21BRmzwq/98=;7:g9rEOkONz1sooHIDEHLy2bncskLKIejHgCrlVAsy9lxlrDNL/TO7Nx+p+bPekBuJ7O1VGGbdTpOPgUmqBKNMgRu8hjg6vQC/9V5BMCWfGMMC4Hf1qE7bIKLFWLEGHY8KA8U9/svutzjP3z3uORLgYWtP/DA6eJ4HM6rwjvGvH1oydQar6L3CEYiLckwRCV298CGDqW4InYGnd4K+xrbUfIgRhYC0Gr0AkNe6La6LoVgwUgLNkGMLhKqSp8EM8HZq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB3036;20:cjlgsWF83/nLj0/dbLEYd/oabLB6INy1nHldpOKRIeA6rX+BoUHO8mk8zhZVWhPC4YnIY3a7/cAoxuKVv6STxVU9JEpxX4rZ/5EKjcmIuKDw0MH79U0sbgeRHBdLlhkf934bjimKxWAa8feYzmmR5mo00Zw3lfbmjvhiJQg+YQY= X-OriginatorOrg: ou.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2018 04:04:07.5956 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38663999-dfa6-4756-c1c6-08d587ce4e4b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 9c7de09d-9034-44c1-b462-c464fece204a X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB3036 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-12_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803120046 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 11, 2018 at 11:24:38PM +0000, Ian Armstrong wrote: > 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). Am I correct that you are talking about the possibility of re-ioremap()-ing the 'yuv-fb-yuv' area *after* loading the firmware, not of mapping ranges correctly on the first go-around? Because unless my math is letting me down, the decoder firmware is already loaded from 'base_addr + 0x01000000 + 0x0' to 'base_addr + 0x01000000 + 0x3ffff' which overlaps the beginning of the yuv range. - Nick