Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp909591pxb; Sat, 18 Sep 2021 23:46:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKddRl0kc6eFsyodVFlnagVV+xxSNzC+g1U1NwRdNwbvkH/sJq76Zkm3jQrVBFBNwSMw19 X-Received: by 2002:a02:958e:: with SMTP id b14mr14996791jai.123.1632033895444; Sat, 18 Sep 2021 23:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632033895; cv=none; d=google.com; s=arc-20160816; b=a1XF+N3VgZSNiprYhGJIFBE1GcY9eT0llnDiSlxZX1zZIhBMjfHroY+i76sx76BTlr DEqnY/+kOXtN1lcA9xMJCSRzEemnHXLFVoWMRQHv6P64vyozyufTZZYvIypIG1zX63b3 FJiPWdnhWjsDseSu7EYJfz6BTqDtI6U0vcAB7aXlJeQp0/+C5HvaGTvG8aIMbc9/uKoM xM2a1l50CcOQNKzJRQEZLnlt3bYaJKg8Q3sdEDo+xtiB+IVs2OK6vszE0zeTUg2r6QM2 5UpOPXEwiIo+SGHFOmSTrK3nS03rpbJab4p6n5VK5l4b1HYjbn0JPdp4zyebDK8vPB7h TJwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:from :in-reply-to:cc:date:to:subject:message-id; bh=C1mnFvlmCxixWD406TS3HII5+3JBCcRzRL/jG+bpL/o=; b=vAj7idC7ViNX0jtP0au/GVKMjWuei9qAS+KEk6ng1iL1WtedOZNRyI5sUKKAkwmNQ3 8iuiTg971HpvetfSqzw3z8ArpzwbztIonADNJnp9k/D9Hjzpv7ZIrMB0W8emqBUHJCqq 63btnmbrHazYmCRcP38z1VtO2iJPwDac+7n+YGQui5r0cdNcX8KYGex+mnzwR1QsUutS 1VEAIouMnVHJlEMFU+vhzP+HS13CCQ8X8ay0nsWzaBvYxpdUdQWmci+M0+RQQSzZxp0o DA3KcVtMSf1jKc6la9VGncVtUYy5DBht1DnAMXiiVzUj4MAY6NxUdajGGo79BHlEYOVE wfug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si10228230iln.136.2021.09.18.23.44.42; Sat, 18 Sep 2021 23:44:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236577AbhIRNw5 (ORCPT + 99 others); Sat, 18 Sep 2021 09:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236010AbhIRNw4 (ORCPT ); Sat, 18 Sep 2021 09:52:56 -0400 X-Greylist: delayed 2387 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 18 Sep 2021 06:51:33 PDT Received: from wp441.webpack.hosteurope.de (wp441.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:85d2::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01374C061574; Sat, 18 Sep 2021 06:51:32 -0700 (PDT) Received: from [2a03:7846:b79f:101:21c:c4ff:fe1f:fd93] (helo=valdese.nms.ulrich-teichert.org); authenticated by wp441.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1mRa7q-0001YE-NU; Sat, 18 Sep 2021 15:11:26 +0200 Received: from valdese.nms.ulrich-teichert.org (localhost [127.0.0.1]) by valdese.nms.ulrich-teichert.org (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 18IDBPWt005217 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 18 Sep 2021 15:11:25 +0200 Received: (from ut@localhost) by valdese.nms.ulrich-teichert.org (8.15.2/8.15.2/Submit) id 18IDBKQB005215; Sat, 18 Sep 2021 15:11:20 +0200 Message-Id: <202109181311.18IDBKQB005215@valdese.nms.ulrich-teichert.org> Subject: Re: [PATCH v2 0/4] Introduce and use absolute_pointer macro To: mcree@orcon.net.nz (Michael Cree) Date: Sat, 18 Sep 2021 15:11:20 +0200 (CEST) Cc: torvalds@linux-foundation.org (Linus Torvalds), linux@roeck-us.net (Guenter Roeck), rth@twiddle.net (Richard Henderson), ink@jurassic.park.msu.ru (Ivan Kokshaysky), mattst88@gmail.com (Matt Turner), James.Bottomley@hansenpartnership.com (James E . J . Bottomley), deller@gmx.de (Helge Deller), davem@davemloft.net (David S . Miller), kuba@kernel.org (Jakub Kicinski), linux-alpha@vger.kernel.org (alpha), geert@linux-m68k.org (Geert Uytterhoeven), linux-kernel@vger.kernel.org (Linux Kernel Mailing List), linux-parisc@vger.kernel.org, netdev@vger.kernel.org (Netdev), linux-sparse@vger.kernel.org (Sparse Mailing-list) In-Reply-To: <20210918095134.GA5001@tower> From: Ulrich Teichert X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;ut@ulrich-teichert.org;1631973093;f71a9507; X-HE-SMSGID: 1mRa7q-0001YE-NU Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > On Thu, Sep 16, 2021 at 11:35:36AM -0700, Linus Torvalds wrote: > > On Wed, Sep 15, 2021 at 3:33 PM Guenter Roeck wrote: > > > > > > drivers/net/ethernet/3com/3c515.c: In function 'corkscrew_start_xmit': > > > drivers/net/ethernet/3com/3c515.c:1053:22: error: > > > cast from pointer to integer of different size > > > > > > That is a typecast from a pointer to an int, which is then sent to an > > > i/o port. That driver should probably be disabled for 64-bit builds. > > > > Naah. I think the Jensen actually had an ISA slot. Came with a > > whopping 8MB too, so the ISA DMA should work just fine. > > > > Or maybe it was EISA only? I really don't remember. It's EISA only. I've made some pictures of a somewhat dusty inside of a Jensen with 4 EISA cards (from bottom to top: SCSI, video, 2x network): http://alpha.ulrich-teichert.org/ (don't worry about the loose cable on one of the pictures, that's just my crude RTC battery replacment) > > I have no way - or interest - to test that on real hardware, but I did > > check that if I relax the config I can at least build it cleanly on > > x86-64 with that change. I could not get a recent kernel to boot, but it's booting ancient kernels just fine: Linux version 2.4.27-2-generic (tretkowski@bastille) (gcc version 3.3.5 (Debian 1:3.3.5-12)) #1 Sun May 29 18:40:58 UTC 2005 Booting GENERIC on Jensen using machine vector Jensen from SRM Major Options: LEGACY_START Command line: ro root=/dev/sda3 memcluster 0, usage 1, start 0, end 256 memcluster 1, usage 0, start 256, end 8192 freeing pages 256:384 freeing pages 757:8192 reserving pages 757:758 Initial ramdisk at: 0xfffffc00039d2000 (5308416 bytes) Max ASN from HWRPB is bad (0xf) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: ro root=/dev/sda3 ... > > It can't make matters worse, and it's the RightThing(tm). > > > > Since Micheal replied about that other alpha issue, maybe he knows > > about the ISA slot situation too? > > Ah, yeah, not really. I am not familiar with the Jensen hardware, > and have never played around with the EISA slot on the Alphas I do > have. I know the feeling.... So many computers, so little time... While we're at it, during my vain attempts to get new kernels to boot, I tried to disable PCI support to make the kernels smaller (after all, the Jensen has only EISA, so what good would PCI support for?) and got it to compile with the attached patch (which fixes some warnings, too). Should apply cleanly to Linus tree. Enable compile for the Jensen without PCI support. Signed-off-by: Ulrich Teichert --- arch/alpha/include/asm/jensen.h | 8 ++++---- arch/alpha/kernel/sys_jensen.c | 2 +- include/asm-generic/pci_iomap.h | 6 +++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/alpha/include/asm/jensen.h b/arch/alpha/include/asm/jensen.h index 916895155a88..1c4131453db2 100644 --- a/arch/alpha/include/asm/jensen.h +++ b/arch/alpha/include/asm/jensen.h @@ -111,18 +111,18 @@ __EXTERN_INLINE void jensen_set_hae(unsigned long addr) * convinced that I need one of the newer machines. */ -static inline unsigned int jensen_local_inb(unsigned long addr) +__EXTERN_INLINE unsigned int jensen_local_inb(unsigned long addr) { return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); } -static inline void jensen_local_outb(u8 b, unsigned long addr) +__EXTERN_INLINE void jensen_local_outb(u8 b, unsigned long addr) { *(vuip)((addr << 9) + EISA_VL82C106) = b; mb(); } -static inline unsigned int jensen_bus_inb(unsigned long addr) +__EXTERN_INLINE unsigned int jensen_bus_inb(unsigned long addr) { long result; @@ -131,7 +131,7 @@ static inline unsigned int jensen_bus_inb(unsigned long addr) return __kernel_extbl(result, addr & 3); } -static inline void jensen_bus_outb(u8 b, unsigned long addr) +__EXTERN_INLINE void jensen_bus_outb(u8 b, unsigned long addr) { jensen_set_hae(0); *(vuip)((addr << 7) + EISA_IO + 0x00) = b * 0x01010101; diff --git a/arch/alpha/kernel/sys_jensen.c b/arch/alpha/kernel/sys_jensen.c index e5d870ff225f..40db6c3d9690 100644 --- a/arch/alpha/kernel/sys_jensen.c +++ b/arch/alpha/kernel/sys_jensen.c @@ -17,7 +17,7 @@ #include -#define __EXTERN_INLINE inline +#define __EXTERN_INLINE extern inline #include #include #undef __EXTERN_INLINE diff --git a/include/asm-generic/pci_iomap.h b/include/asm-generic/pci_iomap.h index df636c6d8e6c..446a0c576b33 100644 --- a/include/asm-generic/pci_iomap.h +++ b/include/asm-generic/pci_iomap.h @@ -18,6 +18,7 @@ extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, extern void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, unsigned long offset, unsigned long maxlen); +extern void pci_iounmap(struct pci_dev *dev, void __iomem *p); /* Create a virtual mapping cookie for a port on a given PCI device. * Do not call this directly, it exists to make it easier for architectures * to override */ @@ -28,7 +29,7 @@ extern void __iomem *__pci_ioport_map(struct pci_dev *dev, unsigned long port, #define __pci_ioport_map(dev, port, nr) ioport_map((port), (nr)) #endif -#elif defined(CONFIG_GENERIC_PCI_IOMAP) +#elif defined(CONFIG_GENERIC_PCI_IOMAP) || !defined(CONFIG_PCI) static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) { return NULL; @@ -50,6 +51,9 @@ static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, { return NULL; } +static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) +{ +} #endif #endif /* __ASM_GENERIC_PCI_IOMAP_H */ -- Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de | Listening to: Stormweg 24 |Eat Lipstick: Dirty Little Secret, The Baboon Show: 24539 Neumuenster, Germany|Work Work Work, The Bellrays: Bad Reaction