Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a6df905f
Commit
a6df905f
authored
Jul 29, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6
parents
f32d92a4
628505a0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
29 deletions
+55
-29
arch/x86_64/kernel/mpparse.c
arch/x86_64/kernel/mpparse.c
+1
-1
arch/x86_64/kernel/pci-gart.c
arch/x86_64/kernel/pci-gart.c
+25
-8
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/prism54/isl_ioctl.c
+9
-7
drivers/net/wireless/prism54/islpci_hotplug.c
drivers/net/wireless/prism54/islpci_hotplug.c
+10
-7
drivers/net/wireless/prism54/islpci_mgt.c
drivers/net/wireless/prism54/islpci_mgt.c
+2
-0
drivers/net/wireless/prism54/oid_mgt.c
drivers/net/wireless/prism54/oid_mgt.c
+4
-2
include/asm-x86_64/mpspec.h
include/asm-x86_64/mpspec.h
+1
-1
include/asm-x86_64/topology.h
include/asm-x86_64/topology.h
+3
-3
No files found.
arch/x86_64/kernel/mpparse.c
View file @
a6df905f
...
@@ -44,7 +44,7 @@ int acpi_found_madt;
...
@@ -44,7 +44,7 @@ int acpi_found_madt;
int
apic_version
[
MAX_APICS
];
int
apic_version
[
MAX_APICS
];
unsigned
char
mp_bus_id_to_type
[
MAX_MP_BUSSES
]
=
{
[
0
...
MAX_MP_BUSSES
-
1
]
=
-
1
};
unsigned
char
mp_bus_id_to_type
[
MAX_MP_BUSSES
]
=
{
[
0
...
MAX_MP_BUSSES
-
1
]
=
-
1
};
int
mp_bus_id_to_pci_bus
[
MAX_MP_BUSSES
]
=
{
[
0
...
MAX_MP_BUSSES
-
1
]
=
-
1
};
int
mp_bus_id_to_pci_bus
[
MAX_MP_BUSSES
]
=
{
[
0
...
MAX_MP_BUSSES
-
1
]
=
-
1
};
cpumask_t
mp_bus_to_cpumask
[
MAX_MP_BUSSES
]
=
{
[
0
...
MAX_MP_BUSSES
-
1
]
=
CPU_MASK_ALL
};
cpumask_t
pci_bus_to_cpumask
[
256
]
=
{
[
0
...
255
]
=
CPU_MASK_ALL
};
int
mp_current_pci_id
=
0
;
int
mp_current_pci_id
=
0
;
/* I/O APIC entries */
/* I/O APIC entries */
...
...
arch/x86_64/kernel/pci-gart.c
View file @
a6df905f
...
@@ -70,6 +70,8 @@ int iommu_fullflush = 1;
...
@@ -70,6 +70,8 @@ int iommu_fullflush = 1;
static
spinlock_t
iommu_bitmap_lock
=
SPIN_LOCK_UNLOCKED
;
static
spinlock_t
iommu_bitmap_lock
=
SPIN_LOCK_UNLOCKED
;
static
unsigned
long
*
iommu_gart_bitmap
;
/* guarded by iommu_bitmap_lock */
static
unsigned
long
*
iommu_gart_bitmap
;
/* guarded by iommu_bitmap_lock */
static
u32
gart_unmapped_entry
;
#define GPTE_VALID 1
#define GPTE_VALID 1
#define GPTE_COHERENT 2
#define GPTE_COHERENT 2
#define GPTE_ENCODE(x) \
#define GPTE_ENCODE(x) \
...
@@ -147,8 +149,6 @@ static void free_iommu(unsigned long offset, int size)
...
@@ -147,8 +149,6 @@ static void free_iommu(unsigned long offset, int size)
static
void
flush_gart
(
struct
pci_dev
*
dev
)
static
void
flush_gart
(
struct
pci_dev
*
dev
)
{
{
unsigned
long
flags
;
unsigned
long
flags
;
int
bus
=
dev
?
dev
->
bus
->
number
:
-
1
;
cpumask_t
bus_cpumask
=
pcibus_to_cpumask
(
bus
);
int
flushed
=
0
;
int
flushed
=
0
;
int
i
;
int
i
;
...
@@ -158,8 +158,6 @@ static void flush_gart(struct pci_dev *dev)
...
@@ -158,8 +158,6 @@ static void flush_gart(struct pci_dev *dev)
u32
w
;
u32
w
;
if
(
!
northbridges
[
i
])
if
(
!
northbridges
[
i
])
continue
;
continue
;
if
(
bus
>=
0
&&
!
(
cpu_isset
(
i
,
bus_cpumask
)))
continue
;
pci_write_config_dword
(
northbridges
[
i
],
0x9c
,
pci_write_config_dword
(
northbridges
[
i
],
0x9c
,
northbridge_flush_word
[
i
]
|
1
);
northbridge_flush_word
[
i
]
|
1
);
/* Make sure the hardware actually executed the flush. */
/* Make sure the hardware actually executed the flush. */
...
@@ -169,7 +167,7 @@ static void flush_gart(struct pci_dev *dev)
...
@@ -169,7 +167,7 @@ static void flush_gart(struct pci_dev *dev)
flushed
++
;
flushed
++
;
}
}
if
(
!
flushed
)
if
(
!
flushed
)
printk
(
"nothing to flush?
%d
\n
"
,
bus
);
printk
(
"nothing to flush?
\n
"
);
need_flush
=
0
;
need_flush
=
0
;
}
}
spin_unlock_irqrestore
(
&
iommu_bitmap_lock
,
flags
);
spin_unlock_irqrestore
(
&
iommu_bitmap_lock
,
flags
);
...
@@ -479,6 +477,11 @@ int pci_map_sg(struct pci_dev *dev, struct scatterlist *sg, int nents, int dir)
...
@@ -479,6 +477,11 @@ int pci_map_sg(struct pci_dev *dev, struct scatterlist *sg, int nents, int dir)
unsigned
long
pages
=
0
;
unsigned
long
pages
=
0
;
int
need
=
0
,
nextneed
;
int
need
=
0
,
nextneed
;
#ifdef CONFIG_SWIOTLB
if
(
swiotlb
)
return
swiotlb_map_sg
(
&
dev
->
dev
,
sg
,
nents
,
dir
);
#endif
BUG_ON
(
dir
==
PCI_DMA_NONE
);
BUG_ON
(
dir
==
PCI_DMA_NONE
);
if
(
nents
==
0
)
if
(
nents
==
0
)
return
0
;
return
0
;
...
@@ -562,7 +565,7 @@ void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr,
...
@@ -562,7 +565,7 @@ void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr,
iommu_page
=
(
dma_addr
-
iommu_bus_base
)
>>
PAGE_SHIFT
;
iommu_page
=
(
dma_addr
-
iommu_bus_base
)
>>
PAGE_SHIFT
;
npages
=
to_pages
(
dma_addr
,
size
);
npages
=
to_pages
(
dma_addr
,
size
);
for
(
i
=
0
;
i
<
npages
;
i
++
)
{
for
(
i
=
0
;
i
<
npages
;
i
++
)
{
iommu_gatt_base
[
iommu_page
+
i
]
=
0
;
iommu_gatt_base
[
iommu_page
+
i
]
=
gart_unmapped_entry
;
CLEAR_LEAK
(
iommu_page
+
i
);
CLEAR_LEAK
(
iommu_page
+
i
);
}
}
free_iommu
(
iommu_page
,
npages
);
free_iommu
(
iommu_page
,
npages
);
...
@@ -729,7 +732,8 @@ static int __init pci_iommu_init(void)
...
@@ -729,7 +732,8 @@ static int __init pci_iommu_init(void)
unsigned
long
aper_size
;
unsigned
long
aper_size
;
unsigned
long
iommu_start
;
unsigned
long
iommu_start
;
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
unsigned
long
scratch
;
long
i
;
#ifndef CONFIG_AGP_AMD64
#ifndef CONFIG_AGP_AMD64
no_agp
=
1
;
no_agp
=
1
;
...
@@ -815,6 +819,19 @@ static int __init pci_iommu_init(void)
...
@@ -815,6 +819,19 @@ static int __init pci_iommu_init(void)
*/
*/
clear_kernel_mapping
((
unsigned
long
)
__va
(
iommu_bus_base
),
iommu_size
);
clear_kernel_mapping
((
unsigned
long
)
__va
(
iommu_bus_base
),
iommu_size
);
/*
* Try to workaround a bug (thanks to BenH)
* Set unmapped entries to a scratch page instead of 0.
* Any prefetches that hit unmapped entries won't get an bus abort
* then.
*/
scratch
=
get_zeroed_page
(
GFP_KERNEL
);
if
(
!
scratch
)
panic
(
"Cannot allocate iommu scratch page"
);
gart_unmapped_entry
=
GPTE_ENCODE
(
__pa
(
scratch
));
for
(
i
=
EMERGENCY_PAGES
;
i
<
iommu_pages
;
i
++
)
iommu_gatt_base
[
i
]
=
gart_unmapped_entry
;
for_all_nb
(
dev
)
{
for_all_nb
(
dev
)
{
u32
flag
;
u32
flag
;
int
cpu
=
PCI_SLOT
(
dev
->
devfn
)
-
24
;
int
cpu
=
PCI_SLOT
(
dev
->
devfn
)
-
24
;
...
...
drivers/net/wireless/prism54/isl_ioctl.c
View file @
a6df905f
...
@@ -1942,7 +1942,7 @@ prism54_debug_get_oid(struct net_device *ndev, struct iw_request_info *info,
...
@@ -1942,7 +1942,7 @@ prism54_debug_get_oid(struct net_device *ndev, struct iw_request_info *info,
{
{
islpci_private
*
priv
=
netdev_priv
(
ndev
);
islpci_private
*
priv
=
netdev_priv
(
ndev
);
struct
islpci_mgmtframe
*
response
=
NULL
;
struct
islpci_mgmtframe
*
response
=
NULL
;
int
ret
=
-
EIO
,
response_op
=
PIMFOR_OP_ERROR
;
int
ret
=
-
EIO
;
printk
(
"%s: get_oid 0x%08X
\n
"
,
ndev
->
name
,
priv
->
priv_oid
);
printk
(
"%s: get_oid 0x%08X
\n
"
,
ndev
->
name
,
priv
->
priv_oid
);
data
->
length
=
0
;
data
->
length
=
0
;
...
@@ -1952,9 +1952,7 @@ prism54_debug_get_oid(struct net_device *ndev, struct iw_request_info *info,
...
@@ -1952,9 +1952,7 @@ prism54_debug_get_oid(struct net_device *ndev, struct iw_request_info *info,
islpci_mgt_transaction
(
priv
->
ndev
,
PIMFOR_OP_GET
,
islpci_mgt_transaction
(
priv
->
ndev
,
PIMFOR_OP_GET
,
priv
->
priv_oid
,
extra
,
256
,
priv
->
priv_oid
,
extra
,
256
,
&
response
);
&
response
);
response_op
=
response
->
header
->
operation
;
printk
(
"%s: ret: %i
\n
"
,
ndev
->
name
,
ret
);
printk
(
"%s: ret: %i
\n
"
,
ndev
->
name
,
ret
);
printk
(
"%s: response_op: %i
\n
"
,
ndev
->
name
,
response_op
);
if
(
ret
||
!
response
if
(
ret
||
!
response
||
response
->
header
->
operation
==
PIMFOR_OP_ERROR
)
{
||
response
->
header
->
operation
==
PIMFOR_OP_ERROR
)
{
if
(
response
)
{
if
(
response
)
{
...
@@ -1991,16 +1989,20 @@ prism54_debug_set_oid(struct net_device *ndev, struct iw_request_info *info,
...
@@ -1991,16 +1989,20 @@ prism54_debug_set_oid(struct net_device *ndev, struct iw_request_info *info,
priv
->
priv_oid
,
extra
,
data
->
length
,
priv
->
priv_oid
,
extra
,
data
->
length
,
&
response
);
&
response
);
printk
(
"%s: ret: %i
\n
"
,
ndev
->
name
,
ret
);
printk
(
"%s: ret: %i
\n
"
,
ndev
->
name
,
ret
);
if
(
ret
||
!
response
||
response
->
header
->
operation
==
PIMFOR_OP_ERROR
)
{
if
(
response
)
{
islpci_mgt_release
(
response
);
}
printk
(
"%s: EIO
\n
"
,
ndev
->
name
);
ret
=
-
EIO
;
}
if
(
!
ret
)
{
if
(
!
ret
)
{
response_op
=
response
->
header
->
operation
;
response_op
=
response
->
header
->
operation
;
printk
(
"%s: response_op: %i
\n
"
,
ndev
->
name
,
printk
(
"%s: response_op: %i
\n
"
,
ndev
->
name
,
response_op
);
response_op
);
islpci_mgt_release
(
response
);
islpci_mgt_release
(
response
);
}
}
if
(
ret
||
response_op
==
PIMFOR_OP_ERROR
)
{
printk
(
"%s: EIO
\n
"
,
ndev
->
name
);
ret
=
-
EIO
;
}
}
}
return
(
ret
?
ret
:
-
EINPROGRESS
);
return
(
ret
?
ret
:
-
EINPROGRESS
);
...
...
drivers/net/wireless/prism54/islpci_hotplug.c
View file @
a6df905f
...
@@ -36,6 +36,9 @@ MODULE_AUTHOR("[Intersil] R.Bastings and W.Termorshuizen, The prism54.org Develo
...
@@ -36,6 +36,9 @@ MODULE_AUTHOR("[Intersil] R.Bastings and W.Termorshuizen, The prism54.org Develo
MODULE_DESCRIPTION
(
"The Prism54 802.11 Wireless LAN adapter"
);
MODULE_DESCRIPTION
(
"The Prism54 802.11 Wireless LAN adapter"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
static
int
init_pcitm
=
0
;
module_param
(
init_pcitm
,
int
,
0
);
/* In this order: vendor, device, subvendor, subdevice, class, class_mask,
/* In this order: vendor, device, subvendor, subdevice, class, class_mask,
* driver_data
* driver_data
* If you have an update for this please contact prism54-devel@prism54.org
* If you have an update for this please contact prism54-devel@prism54.org
...
@@ -292,14 +295,14 @@ prism54_probe(struct pci_dev *pdev, const struct pci_device_id *id)
...
@@ -292,14 +295,14 @@ prism54_probe(struct pci_dev *pdev, const struct pci_device_id *id)
*
*
* Writing zero to both these two registers will disable both timeouts and
* Writing zero to both these two registers will disable both timeouts and
* *can* solve problems caused by devices that are slow to respond.
* *can* solve problems caused by devices that are slow to respond.
* Make this configurable - MSW
*/
*/
/* I am taking these out, we should not be poking around in the
if
(
init_pcitm
>=
0
)
{
* programmable timers - MSW
pci_write_config_byte
(
pdev
,
0x40
,
(
u8
)
init_pcitm
);
*/
pci_write_config_byte
(
pdev
,
0x41
,
(
u8
)
init_pcitm
);
/* Do not zero the programmable timers
}
else
{
pci_write_config_byte(pdev, 0x40, 0);
printk
(
KERN_INFO
"PCI TRDY/RETRY unchanged
\n
"
);
pci_write_config_byte(pdev, 0x41, 0);
}
*/
/* request the pci device I/O regions */
/* request the pci device I/O regions */
rvalue
=
pci_request_regions
(
pdev
,
DRV_NAME
);
rvalue
=
pci_request_regions
(
pdev
,
DRV_NAME
);
...
...
drivers/net/wireless/prism54/islpci_mgt.c
View file @
a6df905f
...
@@ -458,6 +458,8 @@ islpci_mgt_transaction(struct net_device *ndev,
...
@@ -458,6 +458,8 @@ islpci_mgt_transaction(struct net_device *ndev,
int
err
;
int
err
;
DEFINE_WAIT
(
wait
);
DEFINE_WAIT
(
wait
);
*
recvframe
=
NULL
;
if
(
down_interruptible
(
&
priv
->
mgmt_sem
))
if
(
down_interruptible
(
&
priv
->
mgmt_sem
))
return
-
ERESTARTSYS
;
return
-
ERESTARTSYS
;
...
...
drivers/net/wireless/prism54/oid_mgt.c
View file @
a6df905f
...
@@ -408,7 +408,7 @@ int
...
@@ -408,7 +408,7 @@ int
mgt_set_request
(
islpci_private
*
priv
,
enum
oid_num_t
n
,
int
extra
,
void
*
data
)
mgt_set_request
(
islpci_private
*
priv
,
enum
oid_num_t
n
,
int
extra
,
void
*
data
)
{
{
int
ret
=
0
;
int
ret
=
0
;
struct
islpci_mgmtframe
*
response
;
struct
islpci_mgmtframe
*
response
=
NULL
;
int
response_op
=
PIMFOR_OP_ERROR
;
int
response_op
=
PIMFOR_OP_ERROR
;
int
dlen
;
int
dlen
;
void
*
cache
,
*
_data
=
data
;
void
*
cache
,
*
_data
=
data
;
...
@@ -613,14 +613,16 @@ static enum oid_num_t commit_part2[] = {
...
@@ -613,14 +613,16 @@ static enum oid_num_t commit_part2[] = {
DOT11_OID_DEFKEYID
,
DOT11_OID_DEFKEYID
,
DOT11_OID_DOT1XENABLE
,
DOT11_OID_DOT1XENABLE
,
OID_INL_DOT11D_CONFORMANCE
,
OID_INL_DOT11D_CONFORMANCE
,
/* Do not initialize this - fw < 1.0.4.3 rejects it
OID_INL_OUTPUTPOWER,
OID_INL_OUTPUTPOWER,
*/
};
};
/* update the MAC addr. */
/* update the MAC addr. */
static
int
static
int
mgt_update_addr
(
islpci_private
*
priv
)
mgt_update_addr
(
islpci_private
*
priv
)
{
{
struct
islpci_mgmtframe
*
res
;
struct
islpci_mgmtframe
*
res
=
NULL
;
int
ret
;
int
ret
;
ret
=
islpci_mgt_transaction
(
priv
->
ndev
,
PIMFOR_OP_GET
,
ret
=
islpci_mgt_transaction
(
priv
->
ndev
,
PIMFOR_OP_GET
,
...
...
include/asm-x86_64/mpspec.h
View file @
a6df905f
...
@@ -166,7 +166,7 @@ enum mp_bustype {
...
@@ -166,7 +166,7 @@ enum mp_bustype {
};
};
extern
unsigned
char
mp_bus_id_to_type
[
MAX_MP_BUSSES
];
extern
unsigned
char
mp_bus_id_to_type
[
MAX_MP_BUSSES
];
extern
int
mp_bus_id_to_pci_bus
[
MAX_MP_BUSSES
];
extern
int
mp_bus_id_to_pci_bus
[
MAX_MP_BUSSES
];
extern
cpumask_t
mp_bus_to_cpumask
[
MAX_MP_BUSSES
];
extern
cpumask_t
pci_bus_to_cpumask
[
256
];
extern
unsigned
int
boot_cpu_physical_apicid
;
extern
unsigned
int
boot_cpu_physical_apicid
;
extern
int
smp_found_config
;
extern
int
smp_found_config
;
...
...
include/asm-x86_64/topology.h
View file @
a6df905f
...
@@ -22,9 +22,9 @@ extern cpumask_t node_to_cpumask[];
...
@@ -22,9 +22,9 @@ extern cpumask_t node_to_cpumask[];
static
inline
cpumask_t
pcibus_to_cpumask
(
int
bus
)
static
inline
cpumask_t
pcibus_to_cpumask
(
int
bus
)
{
{
cpumask_t
tmp
;
cpumask_t
res
;
cpus_and
(
tmp
,
mp
_bus_to_cpumask
[
bus
],
cpu_online_map
);
cpus_and
(
res
,
pci
_bus_to_cpumask
[
bus
],
cpu_online_map
);
return
tmp
;
return
res
;
}
}
#define NODE_BALANCE_RATE 30
/* CHECKME */
#define NODE_BALANCE_RATE 30
/* CHECKME */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment