Received: by 10.223.185.116 with SMTP id b49csp5842023wrg; Wed, 7 Mar 2018 19:56:53 -0800 (PST) X-Google-Smtp-Source: AG47ELvcW4MgH4DRm+RRMn/o8/7yyXzTrx6VUEHYpeVs9ch3JRBR+ur8aCZ79/faKGjKEqxhXKHd X-Received: by 10.98.70.198 with SMTP id o67mr24667307pfi.173.1520481413577; Wed, 07 Mar 2018 19:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520481413; cv=none; d=google.com; s=arc-20160816; b=hUICFofmhpWtuqEoWxTJ3WJX1ENiscupyQq80ApMWIO9T39bA1qy7l/IAFiACQtJtF tCauZ2ytlkjjq8tTCGnT8YlSaQye2Y67mCCHkyDiDLdRGr/izOihcxfTpE0im9TGP1py x4admRmAlzBFe1hwumUbrk7ESnBwyhIJ29Ps8l8QlSFeDEsM9dTwZ6oJX+DX7OZoUaMZ gtgVNSObpOPsDM9VPXHDUHGm9iY+ChJ3qN9vJ128eY6QYObcQBodvBCtigdnc+aXYZWE 8or+/xUw9Ug1Ok85eQnL6LVW2P6PnYKa2Jpaw3NtdbsIlPq6WxA+9cpDLniRWvUjzNBn O+Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=18XrEK1j0bw6B4ZkdkkjEpSZ2Gy8UrzeurW30dgeTsM=; b=JvwX/PDPGRs+U6tTx5nmTCv6wjqjOET+e0yYFTX/q3A4Q4gPtg+jZjtUzQU6e0jOuW WrIa814STzZTVY6EvSlSxhjdeQvbnpfFlDZm9LxWalpz7ejbipqs0E6QRomRb1cIapZ2 Pr3rkKgLzg05m4VBs/QasS6Y8c9gCLKWNFBIn60+JQGyCftbBXK5pC9ZLAYHXUNc8jLs jDQS1ZHuW9JBww3Z8aPJmxczvzz2zEVISFVoSywX7SZ301sJyYxUumyK6a03n2OwLfIO HqvTV/QWavpAr9vt0OQ1Er+DBTUtWpb+n/o/ClyhuZ6c2ffPu01iXdrWGvAhJphW4Wf7 9E0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sooners.onmicrosoft.com header.s=selector1-ou-edu header.b=Q+jfITDr; 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 x61-v6si13913183plb.741.2018.03.07.19.56.39; Wed, 07 Mar 2018 19:56:53 -0800 (PST) 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=Q+jfITDr; 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 S1754877AbeCHDzp (ORCPT + 99 others); Wed, 7 Mar 2018 22:55:45 -0500 Received: from mx0a-00272701.pphosted.com ([67.231.145.144]:57288 "EHLO mx0a-00272701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbeCHDzn (ORCPT ); Wed, 7 Mar 2018 22:55:43 -0500 X-Greylist: delayed 2349 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Mar 2018 22:55:43 EST Received: from pps.filterd (m0107985.ppops.net [127.0.0.1]) by mx0a-00272701.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w283C12G002035; Wed, 7 Mar 2018 21:16:32 -0600 Received: from nam01-bn3-obe.outbound.protection.outlook.com (mail-bn3nam01lp0180.outbound.protection.outlook.com [216.32.180.180]) by mx0a-00272701.pphosted.com with ESMTP id 2gjth7gay1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 07 Mar 2018 21:16:32 -0600 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=18XrEK1j0bw6B4ZkdkkjEpSZ2Gy8UrzeurW30dgeTsM=; b=Q+jfITDrnAh7PRriG53BQENjI0lm6KTwThakRf96C3CXwR7S4EkOuG+TwRcV1DyvhhaVTpC1pq+0JjkLN2/InWDQxqebqnaDr4h2vcrC5j9zp6fuvoUO7omI1pB3paveC/XFiG8X+NjqsZX/oV7TrcG7riSE0uBPLExIEAIl+xw= Received: from DM5PR03MB3035.namprd03.prod.outlook.com (10.175.107.17) by DM5PR03MB3210.namprd03.prod.outlook.com (10.174.240.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Thu, 8 Mar 2018 03:16:29 +0000 Received: from DM5PR03MB3035.namprd03.prod.outlook.com ([fe80::9051:8390:78c:ce6a]) by DM5PR03MB3035.namprd03.prod.outlook.com ([fe80::9051:8390:78c:ce6a%15]) with mapi id 15.20.0567.012; Thu, 8 Mar 2018 03:16:29 +0000 From: "French, Nicholas A." To: "Luis R. Rodriguez" CC: "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 Thread-Topic: ivtv: use arch_phys_wc_add() and require PAT disabled Thread-Index: AQHTsXBOQGvUe478EUWv+ObGTFYl4qO7oBEAgAgWYqaAAXQ9gIAAhKi/ Date: Thu, 8 Mar 2018 03:16:29 +0000 Message-ID: References: <20180301171936.GU14069@wotan.suse.de> ,<20180307190205.GA14069@wotan.suse.de> In-Reply-To: <20180307190205.GA14069@wotan.suse.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [70.185.212.125] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR03MB3210;20:f+Zt4epi7X2vKABeBPlZ9AhFo/zL5oZ7Dl3BtvBkRUGWmkuASt7LqAlxAHqqkTcSCq0GHFn7fQosteW3Jng6HU0/kWsp4lDt3m40s/yiwagB9ayBXGRxMAAmUh4NvK9FmR2NL4J5sTSKWSozK+1OFOVyRi2qQGmbsnwNOL1liZo= x-ms-office365-filtering-correlation-id: 69198aa1-3527-4d6d-2acb-08d584a2fc1a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989060)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7153060)(7193020);SRVR:DM5PR03MB3210; x-ms-traffictypediagnostic: DM5PR03MB3210: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3231220)(944501244)(52105095)(3002001)(10201501046)(93006095)(93001095)(6041288)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR03MB3210;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB3210; x-forefront-prvs: 060503E79B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(376002)(396003)(39860400002)(39380400002)(189003)(199004)(5890100001)(6916009)(2900100001)(8936002)(59450400001)(97736004)(6246003)(478600001)(81156014)(81166006)(88552002)(4326008)(6506007)(305945005)(5660300001)(105586002)(3280700002)(229853002)(25786009)(74316002)(53936002)(33656002)(7736002)(106356001)(6436002)(14454004)(75432002)(76176011)(786003)(186003)(2906002)(66066001)(7696005)(68736007)(54906003)(2950100002)(8676002)(55016002)(93886005)(5250100002)(6116002)(3660700001)(99286004)(3846002)(86362001)(316002)(26005)(102836004)(9686003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR03MB3210;H:DM5PR03MB3035.namprd03.prod.outlook.com;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-antispam-message-info: WF8+hOUkyxu24U1uhWx22Q7lqJCcyVkGDzhI5aJnVMzYIxmPB5J02qKTaKi3K0fPX+iPxdiPJAjZdXyCLa9aSHmvjiPws1+o4KHkUgk70TYcTWQIyIxduaaOPQ3K6Ab9UO7sFg39NMatzmmBq8VnoOx5GUaxCBoT9XsIN99WHIoGzLlJ2uG2sjx9qzCwfQxfpu7bL2n4KS3wPrqFvvD0hWQRFEalNcgc1A9QYBHd7SE1VleTelkSDX3iZV38PzmyTIkQsEqk+Ngd2K8fVObN2ZPkMCYzk3h0plzMHeHBbb4eJa9SbhSgt3/hxu2EJLQQ4cKZ4jBAyGgyvk9HK1fdMQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ou.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 69198aa1-3527-4d6d-2acb-08d584a2fc1a X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2018 03:16:29.0372 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9c7de09d-9034-44c1-b462-c464fece204a X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB3210 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-08_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=758 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803080037 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 07, 2018 at 07:02:05PM +0000, Luis R. Rodriguez wrote: > On Tue, Mar 06, 2018 at 09:01:10PM +0000, French, Nicholas A. wrote: > > any reason why PAT can't be enabled for ivtvfb as simply as in the atta= ched > > patch? > > Prior to your change the OSD buffer was obtained using the itv->dec_mem += oi->video_rbase > given itv->dec_mem was initialized via [...] > itv->dec_mem =3D ioremap_nocache(itv->base_addr + IVTV_DECODER_OF= FSET - oi->video_buffer_size, > IVTV_DECODER_SIZE); Ah, I see. So my proposed ioremap_wc call was only "working" by aliasing th= e ioremap_nocache()'d mem area and not actually using write combining at al= l. > So what I'd do is change the ioremap_nocache()'d size by substracting > oi->video_buffer_size -- but then you have to ask yourself how you'd get > that size. If its something you can figure out then great. Size is easy since its hardcoded, but unfortunately getting the offset of t= he framebuffer inside the decoders memory to remove from the ioremap_nocach= e call is a chicken and egg problem: the offset is determined by querying t= he firmware that has been loaded to the decoder. the firmware itself will b= e loaded after the ioremap_nocache call at an offset from the address it re= turns. So unless there is a io-re-remap to change the caching status of a subset o= f the decoder's memory once we find out what the framebuffer offset is insi= de the original iremap_nocache'd area, then its a no go for write combining= to the framebuffer with PAT. On the other hand, it works fine for me with a nocache'd framebuffer. It's = certainly better for me personally to have a nocache framebuffer with PAT-e= nabled than the framebuffer completely disabled with PAT-enabled, but I don= 't think I would even propose to rollback the x86 nopat requirement in gene= ral. Apparently the throngs of people using this super-popular driver featu= re haven't complained in the last couple years, so maybe its OK for me to j= ust patch the pat-enabled guard out and deal with a nocache'd framebuffer. - Nick =