Received: by 10.223.185.116 with SMTP id b49csp4797587wrg; Tue, 27 Feb 2018 02:50:04 -0800 (PST) X-Google-Smtp-Source: AH8x225L/G9pHk6gKUMuhzdJF09uVf2W3l9HN1qdpdiG3tSQqtHrA8CFJw4ycejWhyKSBK6Jcwu9 X-Received: by 2002:a17:902:594c:: with SMTP id e12-v6mr14058946plj.323.1519728604689; Tue, 27 Feb 2018 02:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519728604; cv=none; d=google.com; s=arc-20160816; b=ubk7vlSHYRVmanucZF/VTKm9qYshyVfPxDWM5zROkYkJCZfQK2zj7Tp6DBUZNc6Rgl +00R58mtafU7u1RR5nGnxz8EHcdnSsY5HsBgd9gac1ioH6RG4fUHzhSwFpG+E4LC380b hqSYPUYWNjBIJ1elICmc1Tt/QaL+QnG7AiLHWGw2Rgu8nx8ff2APIh660krDBuvEQylP D84CxI5g6Dv4rO55Ac+7QYWkHB1HitUAyALu1Ib3hTtJHMP0+W+zqyxi4UonAWenCEOL ZoXhR8yho9YD7s1mv4IM8a86uAShTITXVkBDBVT9buaUZrLJXg9ZnD3xU63mSFpqHmI/ yHPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=SEZroCjx4gLFC2H7GeiyX9cKgBe2jHJsK9W3LYmHY8k=; b=Wlzhtn34R18A38K0lEac71+ZvVOw90OKaWU8aumKMx5u07zGIr1qRdcqqA2jkN1cJ4 dGkvKB2TsMRiahKiWngPbE1fZuEXqLuWseQeFSSITU0VVRcq0jAA6gTYikpfHNTJIaP8 S+HEazYWmZvs/kETP+lYbwZfd4mbj9C+EU0T7Y50cmcnbS+FecTKdr9L4iTRSRvh8R2Y icJsnEs5P9X2F2zI3US9autZcWRvKiYGoQBwe8HA306+Q2C/DRXJKCtYbtF5x7JK+rST LA0yU2a5kpcFK+/dCLFz9raBciiK0Ipxk7iMz0sJvhkX1WX9rnEeEbZOgsWFeQxRfaWB U0QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cKf+9zo4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71si6918205pgc.17.2018.02.27.02.49.50; Tue, 27 Feb 2018 02:50:04 -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=@gmail.com header.s=20161025 header.b=cKf+9zo4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752946AbeB0KtL (ORCPT + 99 others); Tue, 27 Feb 2018 05:49:11 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:45643 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752676AbeB0KtI (ORCPT ); Tue, 27 Feb 2018 05:49:08 -0500 Received: by mail-qk0-f193.google.com with SMTP id g2so22882468qkd.12; Tue, 27 Feb 2018 02:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SEZroCjx4gLFC2H7GeiyX9cKgBe2jHJsK9W3LYmHY8k=; b=cKf+9zo4Q6aJkLl1kb3Wsajj54Gi2pHaas/nt0UAxi8inj3KiDDcBGs5Y19LJWU4Le 4O0f+DDLKebv29W+SgCOk8rXop/P0dqdNiKoF7H3BXZ56CEw4RS44SZKoZHzQ5ee3rEu L3Wuk8TZIBIkPLwpgQC63auY9/lpRD+3tqayBzT9gdK/j8TU/Upm3h8pgji4vWqaL8bo jCSVUlJXHAbEKj08GqkGZrtrauvyn+dtS9tkRRzr9/p1FjYpbwYPMZDHYRX5W/iRPCKh 4ByRv0YRebmI6/eNjjAOsEMBb17pRSRvsLgFbpHJDBDtMu1EhS5QczyYAWFodEsN5sKQ FuOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SEZroCjx4gLFC2H7GeiyX9cKgBe2jHJsK9W3LYmHY8k=; b=m9yKqmcPNRFi8n60UY74v9FwXubhT15QIvoxX49Zcogu13xoXTRRM86dcMrDqvSdCq XI5tU1lyz5WMtItp4QeKKHw1y8L026ce1b9SgUKkRihbkCw43n/Xq6NebdJyfsu233Wr fUzjJ+pY91/Vw0alNe9+OQXLbfDvh1WpAhafBHliIqJAi9dC0Ztbo1WIlff/EyAtC+Eu 4Uw1JBbLO9edHBa7lkBKCHkGdut9N+shjR2fymEu54Pt+jFYk6ur4OL0+CfHhKA5pm01 aaI7yp9LHn0PN36mptIOuMEdbf4gGvjQbD0tGju68nhRntha6SQY85B3zUYJrneBBCmg k8Cw== X-Gm-Message-State: APf1xPDoLLQQdysE/OcFjJg75WsOtC2K98J4CBAD1ON+bn6lYkR7w/6h FfiAcFA9yGsdfs6ql0ZrXKe+0H0TDwS/qGCHgnI= X-Received: by 10.55.209.217 with SMTP id o86mr20894791qkl.33.1519728547493; Tue, 27 Feb 2018 02:49:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Tue, 27 Feb 2018 02:49:06 -0800 (PST) In-Reply-To: <20180227115243.7ca84b3b@xhacker.debian> References: <20180226143413.44134-1-Evgeniy.Didin@synopsys.com> <20180226143413.44134-3-Evgeniy.Didin@synopsys.com> <1519658060.31245.4.camel@synopsys.com> <1519665265.31245.6.camel@synopsys.com> <1519676841.2997.7.camel@synopsys.com> <20180227115243.7ca84b3b@xhacker.debian> From: Andy Shevchenko Date: Tue, 27 Feb 2018 12:49:06 +0200 Message-ID: Subject: Re: [PATCH 2/2 v3] mmc: dw_mmc: Fix the CTO overflow calculation for 32-bit systems To: Jisheng Zhang Cc: Alexey Brodkin , "linux-kernel@vger.kernel.org" , "dianders@chromium.org" , "linux-mmc@vger.kernel.org" , "Vineet.Gupta1@synopsys.com" , "Eugeniy.Paltsev@synopsys.com" , "linux-snps-arc@lists.infradead.org" , "stable@vger.kernel.org" , "Evgeniy.Didin@synopsys.com" , "ulf.hansson@linaro.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 27, 2018 at 5:52 AM, Jisheng Zhang wrote: > On Mon, 26 Feb 2018 20:27:22 +0000 Alexey Brodkin wrote: >> On Mon, 2018-02-26 at 20:30 +0200, Andy Shevchenko wrote: >> > On Mon, Feb 26, 2018 at 7:14 PM, Evgeniy Didin >> > wrote: >> > > On Mon, 2018-02-26 at 18:53 +0200, Andy Shevchenko wrote: >> > > > On Mon, Feb 26, 2018 at 5:14 PM, Evgeniy Didin >> > > > > > IIRC, someone commented on this or similar, i.e. >> > > > > > DIV_ROUND_UP_ULL() ? ^^^^^^^^^^^^ >> So maybe we need to add export of __udivdi3() for other arches, what do you think? > Per my understanding, Linux kernel prefer to make use of do_div or implementations > in for 64bit divide To everyone in this thread. See just above. That's solution which will work. Other than that, drop COMPILE_TEST from the Kconfig and put a comment that driver will not compile on architectures w/o division library. -- With Best Regards, Andy Shevchenko