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 X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9C02C43457 for ; Mon, 12 Oct 2020 17:07:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6AE4B20878 for ; Mon, 12 Oct 2020 17:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602522475; bh=1qZ/2HeKImHa8M4Zw9hd9GhiiOJB0JQGkiplbKu7jW0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=iiQfraaJDMB7IoKYpK1J1FlBxKIWHkYcHiLTeep+NkkLpODSRSl4B9MkKmhgom4vd SlhMJhD1p7wI9n4kueTLDaqbjO75r9InK1JqB47lDHF0+6IfMeuco4R1AHTolA1uJy a6+Yur+JSBGKfXIbo7c2/aksbCaAb3IY+XxrBTS0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404025AbgJLRHx (ORCPT ); Mon, 12 Oct 2020 13:07:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:42988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403845AbgJLRHx (ORCPT ); Mon, 12 Oct 2020 13:07:53 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4DA9620735; Mon, 12 Oct 2020 17:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602522472; bh=1qZ/2HeKImHa8M4Zw9hd9GhiiOJB0JQGkiplbKu7jW0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V92LgSkrwZuFJUsD7b6r1WxpcD6BCSDF5mMo8T7YWmbEI7E5VrpZjEKYHPCqvxbtH 2Pjpx8FnsbXfoBIdnNoXj1zidzCbyARxVT+YnL/qbZovy/8YNHcz+J6Zjwp1KE+Y3V HLzDetRy2LdqVK0smab/F6grotH4HXFJa3gn3Vm8= Date: Mon, 12 Oct 2020 10:07:50 -0700 From: Jakub Kicinski To: Willem de Bruijn Cc: Valentin Vidic , "David S. Miller" , Philip Rischel , Florian Fainelli , Roman Yeryomin , Andrew Morton , Mike Rapoport , Martin Habets , "Michael S. Tsirkin" , Network Development , linux-kernel Subject: Re: [PATCH v2] net: korina: fix kfree of rx/tx descriptor array Message-ID: <20201012100750.125a55ab@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20201011212135.GD8773@valentin-vidic.from.hr> <20201011220329.13038-1-vvidic@valentin-vidic.from.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, 11 Oct 2020 18:53:31 -0400 Willem de Bruijn wrote: > On Sun, Oct 11, 2020 at 6:04 PM Valentin Vidic wrote: > > kmalloc returns KSEG0 addresses so convert back from KSEG1 > > in kfree. Also make sure array is freed when the driver is > > unloaded from the kernel. > > > > Fixes: ef11291bcd5f ("Add support the Korina (IDT RC32434) Ethernet MAC") > > Signed-off-by: Valentin Vidic > > Ah, this a MIPS architecture feature, both KSEGs mapping the same > region, just cachable vs non-cachable. > > Acked-by: Willem de Bruijn Applied, thank you!