Received: by 10.223.185.116 with SMTP id b49csp5854613wrg; Wed, 7 Mar 2018 20:15:22 -0800 (PST) X-Google-Smtp-Source: AG47ELuVW9Eksm7S7LVS/WndOOxDXtiSJtp1zNntnKlUBDEBJ1jESws8L6T6N13kOzQFnPNPzYy4 X-Received: by 2002:a17:902:7445:: with SMTP id e5-v6mr22555527plt.204.1520482522379; Wed, 07 Mar 2018 20:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520482522; cv=none; d=google.com; s=arc-20160816; b=0XXxE/Zc1ISjIrcdsHukWhYUaYpXXaf1kWcwZx/qe7Q0m7QMl56wTA3RgAgVDD88bi Kgw5dVicGQvHZNpe6ictMFfL05Zr+j74axuQ48ehgTzMlxW3eYbp57hIcuAwRzGIY8Gi XP6vm14vyXSbTkFBlXW9ZHlSAeKhaCbwjJsOHxgsjg8J7h9vxYIrIL5e/WCkLHXtBE0R nOS32tlgLzTJ7qV8g810/T3aGX5ciFYJe86l6GKQAInKsQFHSmSQ5Rfl2w95ARbRRYSE 8z7KTc2/xC5Pu8iSfd2o5m/uEIE0wP2Esh/G41eLWj2WQAmFljKeY83JpYn/5ueP+P3a x+dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=pNIFQRRD4kEzv0U9vHwTczMnodGu2CUdf/vcOnjoQEU=; b=pIDNxvhY/YU16yBTSxP8G8sYvc/lscwNHHCzYg8vzt2FM+T0pwyfMSR8RlHd+V9r49 ly8VAcqlFhh/kv5Qc4TNxMREsH4BhWG3qXHqXH9Fje8XAbfliarBUTgx1H745sPW6Dcm +40wOpS6DyqwvDeyybWQLFdPkLYN3aaVy6RJtzbpABKXw0KFV5VJm/p/ZS2g5cljAT8g M2DXuA6xPtAZxG7iVqQVuLj+i+Btk0TnNyJ6tsQxgudxDBypKvUQpQJMMJrk7uiOHX7m kfjzh6czw14HUNb6Qh8m6bYD7ifYlqz+Z7xwYCdETjAOiWefdtL2Yj2Yhsga0IhZfAsZ tbHQ== 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 k9-v6si14100541plt.293.2018.03.07.20.15.07; Wed, 07 Mar 2018 20:15:22 -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; 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 S934158AbeCHEON (ORCPT + 99 others); Wed, 7 Mar 2018 23:14:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:45145 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbeCHEOM (ORCPT ); Wed, 7 Mar 2018 23:14:12 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 45AF5ACBA; Thu, 8 Mar 2018 04:14:11 +0000 (UTC) Date: Thu, 8 Mar 2018 04:14:11 +0000 From: "Luis R. Rodriguez" To: "Luis R. Rodriguez" , Andy Lutomirski Cc: "French, Nicholas A." , "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: <20180308041411.GR14069@wotan.suse.de> References: <20180301171936.GU14069@wotan.suse.de> <20180307190205.GA14069@wotan.suse.de> <20180308040601.GQ14069@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180308040601.GQ14069@wotan.suse.de> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 08, 2018 at 04:06:01AM +0000, Luis R. Rodriguez wrote: > On Thu, Mar 08, 2018 at 03:16:29AM +0000, French, Nicholas A. wrote: > > 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 attached > > > > 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 = ioremap_nocache(itv->base_addr + IVTV_DECODER_OFFSET - oi->video_buffer_size, > > > IVTV_DECODER_SIZE); > > > > Ah, I see. So my proposed ioremap_wc call was only "working" by aliasing the > > ioremap_nocache()'d mem area and not actually using write combining at all. > > There are some debugging PAT toys out there I think but I haven't played with > them yet or I forgot how to to confirm or deny this sort of effort, but > likeley. In fact come to think of it I believe some neurons are telling me that if two type does not match we'd get an error? Luis