From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 507A8CE79AD for ; Wed, 20 Sep 2023 08:02:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233126AbjITICV (ORCPT ); Wed, 20 Sep 2023 04:02:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233452AbjITICS (ORCPT ); Wed, 20 Sep 2023 04:02:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01C57AF for ; Wed, 20 Sep 2023 01:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695196891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rnpCpoK1Qphye/H0at9y+THlkxPvcEo2r5PdFTxqnHY=; b=b6aYi71saap/Q6w8BgWz6mQXiXVwgl0Fs+rUU4R6MWfhjDt9zNt3fGEd7AVhhr8pr9zJre OC2aryCtmSl1R8Z8O+dyOWLwWSn26BY3/LKeLeQC8y8e4mb7iJyL2fQPd1q498UpI3K2uK 7w23AtkppUnbnq9ylCYxW3UKmmU65BU= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-632-SILOFlmHOl2kjbHNXEpipg-1; Wed, 20 Sep 2023 04:01:29 -0400 X-MC-Unique: SILOFlmHOl2kjbHNXEpipg-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-31f79595669so238946f8f.0 for ; Wed, 20 Sep 2023 01:01:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695196888; x=1695801688; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rnpCpoK1Qphye/H0at9y+THlkxPvcEo2r5PdFTxqnHY=; b=PdrKmExGKyXPIlBsojDPloTBRivBjHK2pVNwDAlnjVJeuSdtapwbS7ODvuIRIOfjKd VLc0RKg5Q3xodIvNd0Bd3h+ZB3181NSgO9UpKAe2SPBcAZfxCDTrKj0ncWCtbsdqjeuj HS/xzi3N7DPAeO/FbDfh2IGmw1piG3VIH/9pzTHLB11sJqB+r1e3a9oPiFNbOPu1WXQd r/OyH10A51dwhggXVsWXBgO+oeVxJ3z1Nroj6Dq4FPqQdpEMCXduX/2SK4sAaFtOK93n 7rYMknL50bMk2sv7QE/XcsZQPmtV5JhdYsF4Bk3MZ916L3KP8FRh/uemPaMaQCaN8RDp tPDg== X-Gm-Message-State: AOJu0Yz621i0/ooDl/1xDXeDQZ/KGPJPgHYKdoZyv7YeEHSDppn48+Bg M/tDJ1KWh/6ETu6Iyc4bM/1Lfhbb7vIPP2nGSjTFgSNnMGADyops4+wG+1M/sn2Rx92zZRUnyUq iaRTLCoL5eay1w2gN1ZpTGg== X-Received: by 2002:a5d:4691:0:b0:317:6579:2b9f with SMTP id u17-20020a5d4691000000b0031765792b9fmr1441899wrq.30.1695196888609; Wed, 20 Sep 2023 01:01:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGjMaHCrb95S6OjzxI7LM9YzqMZD+FHo9V0ilc7E6hmphf8oly7XaHzjchfvY6rdHHetD1Jw== X-Received: by 2002:a5d:4691:0:b0:317:6579:2b9f with SMTP id u17-20020a5d4691000000b0031765792b9fmr1441876wrq.30.1695196888277; Wed, 20 Sep 2023 01:01:28 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id a4-20020adffb84000000b0031c5e9c2ed7sm17627845wrr.92.2023.09.20.01.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 01:01:27 -0700 (PDT) From: Javier Martinez Canillas To: Thomas Zimmermann , mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, arnd@arndb.de, deller@gmx.de Cc: linux-arch@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-m68k@lists.linux-m68k.org, Thomas Zimmermann , sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v4 1/5] fbdev: Avoid file argument in fb_pgprotect() In-Reply-To: <20230912135050.17155-2-tzimmermann@suse.de> References: <20230912135050.17155-1-tzimmermann@suse.de> <20230912135050.17155-2-tzimmermann@suse.de> Date: Wed, 20 Sep 2023 10:01:27 +0200 Message-ID: <87il85l1d4.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Thomas Zimmermann writes: Hello Thomas, > Only PowerPC's fb_pgprotect() needs the file argument, although > the implementation does not use it. Pass NULL to the internal Can you please mention the function that's the implementation for PowerPC ? If I'm looking at the code correctly, that function is phys_mem_access_prot() defined in the arch/powerpc/mm/mem.c file: pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot) { if (ppc_md.phys_mem_access_prot) return ppc_md.phys_mem_access_prot(file, pfn, size, vma_prot); if (!page_is_ram(pfn)) vma_prot = pgprot_noncached(vma_prot); return vma_prot; } and if set, ppc_md.phys_mem_access_prot is pci_phys_mem_access_prot() that is defined in the arch/powerpc/kernel/pci-common.c source file: https://elixir.bootlin.com/linux/v6.6-rc2/source/arch/powerpc/kernel/pci-common.c#L524 That function indeed doesn't use the file argument. So your patch looks correct to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat